From 56141d4b94f415b6959085591d5e1c3cd2c52cbd Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 21 Aug 2023 12:55:58 -0700 Subject: [PATCH] Fix cd moving the user to the file's directory. --- source.env | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source.env b/source.env index 157a3b6..4600df0 100755 --- a/source.env +++ b/source.env @@ -5,8 +5,10 @@ DIR="$(dirname -- "${BASH_SOURCE[0]}")" if [[ "$DIR" == '.'* ]]; then + RETURN="`pwd`" cd $DIR DIR="`pwd`" + cd "$RETURN" fi DOCKER_HOME="$DIR"