From d19b5cded1b3049cd703d922ab21faba81c35d1d Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 26 Jan 2022 23:51:19 -0300 Subject: [PATCH] Update runScript() --- scripts/bootstrap.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index b0235b7..1863734 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -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