Fix bug
This commit is contained in:
parent
043ee6cca8
commit
213a00d032
|
@ -116,7 +116,7 @@ startRice() {
|
||||||
runScript() {
|
runScript() {
|
||||||
lastFolder=$(pwd -P)
|
lastFolder=$(pwd -P)
|
||||||
cocoRiceFolder=$(pwd -P | awk '{ sub(/CocoRice.*/, "CocoRice"); print }')
|
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
|
source scripts/common.sh
|
||||||
checkParameters "$@"
|
checkParameters "$@"
|
||||||
|
@ -126,7 +126,7 @@ runScript() {
|
||||||
startRice
|
startRice
|
||||||
|
|
||||||
clear
|
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 "$@"
|
runScript "$@"
|
Loading…
Reference in New Issue