diff --git a/scripts/update.sh b/scripts/update.sh index 69c442b..105de53 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -9,7 +9,7 @@ updateSubmodules() { } runScript() { - lastFolder=$(pwd -P) + lastFolder=$PWD sadedotParentFolder=$(pwd -P | awk '{ sub(/\/sadedot.*/, ""); print }') cd "$sadedotParentFolder" || { echo "Couldn't cd into '$sadedotParentFolder'." 1>&2 && exit 1; }