diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-08-21 13:38:26 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-08-21 13:38:26 +0200 |
commit | 3faf3c96fa31163e2201240e47f27a6571111ab7 (patch) | |
tree | 34fbf0a56fdf10463c4a7732c511996806e4fe80 | |
parent | 7abdddfff98586b8205eb55d9b0865dd17af0975 (diff) |
Fixed bundle install
-rwxr-xr-x | utils.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -97,10 +97,12 @@ install_ruby() { # install a ruby gem using bundler install_with_bundler() { printf "\n%50s\n" "INSTALL" - check_utils "gem rbenv bundle" + check_utils "gem rbenv" $GEM list | grep bundler >/dev/null 2>&1 || (cmd="$GEM install bundler" && run_cmd "$cmd" "Install bundler") cmd="$RBENV rehash" && run_cmd "$cmd" "Rbenv rehash" + check_utils "gem rbenv bundle" cmd="$BUNDLE install" && run_cmd "$cmd" "Install using bundler" + cmd="$RBENV rehash" && run_cmd "$cmd" "Rbenv rehash" } # download opentox git repo |