Commit 62a36b90654c8dc9c5251dcf312cf314d15bb1c4
1 parent
a32baeef46
Fail fast
Showing 1 changed file with 2 additions and 0 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 | |||
4 | set -e | |||
5 | ||||
# FIX: only sudo if gem home isn't writable | 4 | 6 | # FIX: only sudo if gem home isn't writable | |
5 | 7 | |||
(gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) || | 6 | 8 | (gem spec bundler -v '~> 1.2.0' > /dev/null 2>&1) || | |
sudo gem install bundler --no-rdoc --no-ri | 7 | 9 | sudo gem install bundler --no-rdoc --no-ri | |
8 | 10 | |||
# We don't want old config hanging around. | 9 | 11 | # We don't want old config hanging around. | |
10 | 12 | |||
rm -rf .bundle/config | 11 | 13 | rm -rf .bundle/config | |
rm -rf .librarian/puppet/config | 12 | 14 | rm -rf .librarian/puppet/config | |
13 | 15 | |||
# Export CC to explicitly set the compiler used for cexts. | 14 | 16 | # Export CC to explicitly set the compiler used for cexts. |