From 3ea3fc01b3dba3d23e194a96241521fe592e0fd2 Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Sat, 6 Jul 2013 10:06:26 -0700 Subject: [PATCH] use gem list -i --- script/bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/bootstrap b/script/bootstrap index 1be29a0..284b273 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -5,7 +5,7 @@ set -e # FIX: only sudo if gem home isn't writable -(/usr/bin/gem spec bundler -v '~> 1.3.0' > /dev/null 2>&1) || { +(/usr/bin/gem list -i bundler -v '~> 1.3.0' > /dev/null) || { /usr/bin/sudo -p "Need to install Bundler for system ruby, password for sudo: " \ /usr/bin/gem install bundler -v '~> 1.3.0' --no-rdoc --no-ri }