Commit 20ad8323cb814ca1a819365a03afd569fb480b57

Authored by Will Farrington
1 parent 0218b35b20

Use full paths to bins in script/bootstrap

Showing 1 changed file with 5 additions and 4 deletions Side-by-side Diff

... ... @@ -5,9 +5,10 @@
5 5  
6 6 # FIX: only sudo if gem home isn't writable
7 7  
8   -(gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) ||
9   - sudo -p "Need to install Bundler for system ruby, password for sudo: " \
10   - gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri
  8 +(/usr/bin/gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) || {
  9 + /usr/bin/sudo -p "Need to install Bundler for system ruby, password for sudo: " \
  10 + /usr/bin/gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri
  11 +}
11 12  
12 13 # We don't want old config hanging around.
13 14  
... ... @@ -17,5 +18,5 @@
17 18 # Bundle install unless we're already up to date.
18 19  
19 20 export PATH=$(pwd)/vendor/shims:$PATH
20   -bundle install --binstubs bin --path .bundle --quiet "$@"
  21 +/usr/bin/bundle install --binstubs bin --path .bundle --quiet "$@"