use fail function in newbox script
This commit is contained in:
parent
5c5939c68e
commit
0ec21ed984
1 changed files with 2 additions and 4 deletions
6
newbox
6
newbox
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue