use fail function in newbox script

This commit is contained in:
Sami Samhuri 2012-05-17 16:59:52 -07:00
parent 5c5939c68e
commit 0ec21ed984

6
newbox
View file

@ -11,8 +11,7 @@ if ! which zsh >/dev/null 2>&1; then
elif which brew >/dev/null 2>&1; then
brew install zsh
else
echo "Don't know how to install zsh on this box. Install zsh and run this again."
exit 1
fail "Don't know how to install zsh on this box. Install zsh and run this again."
fi
fi
@ -22,8 +21,7 @@ if ! which git >/dev/null 2>&1; then
elif which brew >/dev/null 2>&1; then
brew install git-core
else
echo "Don't know how to install git on this box. Install git and run this again."
exit 1
fail "Don't know how to install git on this box. Install git and run this again."
fi
fi