Skip to content

Commit

Permalink
Merge pull request #25 from Herna1994/patch-1
Browse files Browse the repository at this point in the history
Add a checker to see if bin folder already exists
  • Loading branch information
corbindavenport committed Oct 9, 2015
2 parents bde3884 + 57cdf51 commit 8b515a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ if [ -f $FASTBOOT ]; then
[ "$input" = "" ] && sudo rm $FASTBOOT || exit 1
fi

# check if bin folder is already created
if [ ! -d /usr/local/bin/ ]; then
sudo mkdir -p /usr/local/bin/
fi

# detect operating system and install

if [ "$OS" == "Darwin" ]; then # Mac OS X
Expand Down

0 comments on commit 8b515a2

Please sign in to comment.