diff --git a/install b/install index da60fda03e..d532dd807c 100755 --- a/install +++ b/install @@ -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 }