This commit is contained in:
Santiago Lo Coco 2022-01-14 01:28:13 -03:00
parent 043ee6cca8
commit 213a00d032
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ startRice() {
runScript() {
lastFolder=$(pwd -P)
cocoRiceFolder=$(pwd -P | awk '{ sub(/CocoRice.*/, "CocoRice"); print }')
cd "$cocoRiceFolder" || echo "Couldn't cd into '$cocoRiceFolder'." 1>&2 && exit 1
cd "$cocoRiceFolder" || { echo "Couldn't cd into '$cocoRiceFolder'." 1>&2 && exit 1; }
source scripts/common.sh
checkParameters "$@"
@ -126,7 +126,7 @@ runScript() {
startRice
clear
cd "$lastFolder" || echo "Couldn't cd into '$lastFolder'." 1>&2 && exit 1
cd "$lastFolder" || { echo "Couldn't cd into '$lastFolder'." 1>&2 && exit 1; }
}
runScript "$@"