diff --git a/docker_test.sh b/docker_test.sh index 2e7fa0d13523e70b9e2ddba9958f7f361d4df37d..608677842f40ed18ce98f6a7724619893fc6eaa5 100755 --- a/docker_test.sh +++ b/docker_test.sh @@ -26,6 +26,8 @@ create_dumb_secrets() { fi } +PATH=$(pwd) + if [[ $(hostname) != *"test"* ]]; then echo "ERROR : DO NOT USE OUTSIDE OF A TEST MACHINE !" usage @@ -48,7 +50,6 @@ if [[ -d "$1" ]]; then echo -e "\n==== Stop and remove existing containers and volumes ====" docker-compose down -v - cd .. else echo "WARNING : directory does not exist ($1) ; will try to pull" fi @@ -59,7 +60,7 @@ read ans if [ $ans == "y" ]; then git pull - cd "$1" + cd ${PATH}/$1 git checkout -- . else echo "Aborting."