Bläddra i källkod

Debugging PATH

Kevin van Zonneveld 9 år sedan
förälder
incheckning
02af353c74
2 ändrade filer med 5 tillägg och 3 borttagningar
  1. 1 1
      .travis.yml
  2. 4 2
      bin/install-chromedriver

+ 1 - 1
.travis.yml

@@ -19,7 +19,7 @@ cache:
     - website/node_modules
     - website/node_modules
 
 
 before_script:
 before_script:
-  - export PATH=${PATH}:${HOME}/bin/
+  - export PATH=${PATH}:${HOME}/bin
 
 
 script:
 script:
   - npm run build
   - npm run build

+ 4 - 2
bin/install-chromedriver

@@ -13,7 +13,7 @@ colorRed='\033[0;31m'
 colorGreen='\033[0;32m'
 colorGreen='\033[0;32m'
 colorReset='\033[0m'
 colorReset='\033[0m'
 
 
-export PATH="${PATH}:${HOME}/bin/"
+export PATH="${PATH}:${HOME}/bin"
 
 
 echo -n "--> Checking for chromedriver: "
 echo -n "--> Checking for chromedriver: "
 if which chromedriver 2>&1 > /dev/null; then
 if which chromedriver 2>&1 > /dev/null; then
@@ -24,10 +24,12 @@ else
   if [[ "${OSTYPE}" == "darwin"* ]]; then
   if [[ "${OSTYPE}" == "darwin"* ]]; then
     brew install chromedriver
     brew install chromedriver
   else
   else
-    mkdir -p "${HOME}/bin/"
+    mkdir -p "${HOME}/bin"
     wget 'http://chromedriver.storage.googleapis.com/2.21/chromedriver_linux64.zip'
     wget 'http://chromedriver.storage.googleapis.com/2.21/chromedriver_linux64.zip'
     unzip -o chromedriver_linux64.zip && rm -f chromedriver_linux64.zip
     unzip -o chromedriver_linux64.zip && rm -f chromedriver_linux64.zip
     chmod 755 chromedriver
     chmod 755 chromedriver
+    ls -al "${HOME}/bin"
+    export PATH="${PATH}:${HOME}/bin"
   fi
   fi
   echo -n "--> Verifying chromedriver: "
   echo -n "--> Verifying chromedriver: "
   if chromedriver -v 2>&1 > /dev/null; then
   if chromedriver -v 2>&1 > /dev/null; then