Skip to content

Commit

Permalink
Convert bundler detection steps to function
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmachos committed Mar 9, 2018
1 parent 1e3b254 commit 2d9ba38
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,19 @@ fi
# * rvm: https://rvm.io/rvm/install'
#fi

info 'Detecting bundler gem...'
if command_exists bundler
then
info 'bundler gem is installed'
else
info 'Installing bundler gem'
gem install bundler
fi


check_bundler () {

info 'Detecting bundler gem...'

if command_exists bundler
then
info 'bundler gem is installed'
else
info 'Installing bundler gem'
gem install bundler
fi
}


Expand Down

0 comments on commit 2d9ba38

Please sign in to comment.