From 0ec21ed984a0eef113e7124fec1608f2325d9170 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Thu, 17 May 2012 16:59:52 -0700 Subject: [PATCH] use fail function in newbox script --- newbox | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/newbox b/newbox index bb411e8..584784f 100755 --- a/newbox +++ b/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