Fix cd moving the user to the file's directory.

This commit is contained in:
2023-08-21 12:55:58 -07:00
parent 9d354c40c2
commit 56141d4b94

View File

@@ -5,8 +5,10 @@
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
if [[ "$DIR" == '.'* ]]; then
RETURN="`pwd`"
cd $DIR
DIR="`pwd`"
cd "$RETURN"
fi
DOCKER_HOME="$DIR"