Permalink
Browse files

Fix early exit from script on failure

  • Loading branch information...
1 parent ca4f1f4 commit c5bcd068f038fe1ede03b489d0dc2d784e0d03ab @justincampbell committed Nov 14, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 homebrew.sh
View
@@ -41,9 +41,12 @@ for cask in "${casks[@]}"; do
brew cask install $cask --force
done
-grep /usr/local/bin/bash /etc/shells > /dev/null || (echo "
+if ! grep /usr/local/bin/bash /etc/shells > /dev/null; then
+ echo "
Homebrew Bash needs some additional setup:
sudo sh -c 'echo /usr/local/bin/bash >> /etc/shells'
chsh -s /usr/local/bin/bash
-" && exit 1)
+ "
+ exit 1
+fi

0 comments on commit c5bcd06

Please sign in to comment.