use gem list -i
This commit is contained in:
parent
a260b6f6b0
commit
3ea3fc01b3
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ set -e
|
||||||
|
|
||||||
# FIX: only sudo if gem home isn't writable
|
# 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/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
|
/usr/bin/gem install bundler -v '~> 1.3.0' --no-rdoc --no-ri
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue