summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-08-21 13:38:26 +0200
committerAndreas Maunz <andreas@maunz.de>2012-08-21 13:38:26 +0200
commit3faf3c96fa31163e2201240e47f27a6571111ab7 (patch)
tree34fbf0a56fdf10463c4a7732c511996806e4fe80
parent7abdddfff98586b8205eb55d9b0865dd17af0975 (diff)
Fixed bundle install
-rwxr-xr-xutils.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils.sh b/utils.sh
index e06be5d..c521f3c 100755
--- a/utils.sh
+++ b/utils.sh
@@ -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