Commit 20ad8323cb814ca1a819365a03afd569fb480b57
1 parent
0218b35b20
Use full paths to bins in script/bootstrap
Showing 1 changed file with 5 additions and 4 deletions Inline Diff
script/bootstrap
| #!/bin/sh | 1 | 1 | #!/bin/sh | |
| # Make sure all our local dependencies are available. | 2 | 2 | # Make sure all our local dependencies are available. | |
| 3 | 3 | |||
| set -e | 4 | 4 | set -e | |
| 5 | 5 | |||
| # FIX: only sudo if gem home isn't writable | 6 | 6 | # FIX: only sudo if gem home isn't writable | |
| 7 | 7 | |||
| (gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) || | 8 | 8 | (/usr/bin/gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) || { | |
| sudo -p "Need to install Bundler for system ruby, password for sudo: " \ | 9 | 9 | /usr/bin/sudo -p "Need to install Bundler for system ruby, password for sudo: " \ | |
| gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri | 10 | 10 | /usr/bin/gem install bundler -v '~> 1.2.0' --no-rdoc --no-ri | |
| 11 | } | |||
| 11 | 12 | |||
| # We don't want old config hanging around. | 12 | 13 | # We don't want old config hanging around. | |
| 13 | 14 | |||
| rm -rf .bundle/config | 14 | 15 | rm -rf .bundle/config | |
| rm -rf .librarian/puppet/config | 15 | 16 | rm -rf .librarian/puppet/config | |
| 16 | 17 | |||
| # Bundle install unless we're already up to date. | 17 | 18 | # Bundle install unless we're already up to date. |