Commit f65ab947 authored by Aral Balkan's avatar Aral Balkan

Fix mkdir path and add explicit exit status

Was using a string for the mkdir statement, which was
failing. Added explicit success exit status (will start doing
that as a convention to avoid possible exit status bubbling of
subprocesses.)
parent 2745f11b
......@@ -181,13 +181,16 @@ installSelf(){
indentOutput "carthage bootstrap --platform iOS" ' '
# Make sure that the shallow clone directory exists for content deployment
shallowCloneDirectory="~/better.fyi/data/shallow"
shallowCloneDirectory=~/better.fyi/data/shallow
if ! [ -d $shallowCloneDirectory ]; then
echo " • Creating content shallow clone directory at ${shallowCloneDirectory}."
mkdir $shallowCloneDirectory
fi
}
goodbye(){
echo "\n • Installation complete.\n\n Type ./dev to get started ❤\n"
exit 0
}
#
......@@ -201,6 +204,7 @@ main(){
ensureDependenciesExist
installSelf
flagEnd
goodbye
}
main
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment