Update runScript()

This commit is contained in:
Santiago Lo Coco 2022-01-26 23:51:19 -03:00
parent 62cfd24ac5
commit d19b5cded1
1 changed files with 2 additions and 0 deletions

View File

@ -142,6 +142,8 @@ runScript() {
sadedotFolder=$(pwd -P | awk '{ sub(/sadedot.*/, "sadedot"); print }')
cd "$sadedotFolder" || { echo "Couldn't cd into '$sadedotFolder'." 1>&2 && exit 1; }
[[ "$(basename $sadedotFolder)" != "sadedot" ]] && cd sadedot
source scripts/common.sh
checkParameters "$@"
clear