From 3faf3c96fa31163e2201240e47f27a6571111ab7 Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Tue, 21 Aug 2012 13:38:26 +0200 Subject: Fixed bundle install --- utils.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3