Fix cd moving the user to the file's directory.
This commit is contained in:
@@ -5,8 +5,10 @@
|
|||||||
|
|
||||||
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||||
if [[ "$DIR" == '.'* ]]; then
|
if [[ "$DIR" == '.'* ]]; then
|
||||||
|
RETURN="`pwd`"
|
||||||
cd $DIR
|
cd $DIR
|
||||||
DIR="`pwd`"
|
DIR="`pwd`"
|
||||||
|
cd "$RETURN"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DOCKER_HOME="$DIR"
|
DOCKER_HOME="$DIR"
|
||||||
|
Reference in New Issue
Block a user