Created
June 30, 2014 15:04
-
-
Save xaviershay/a28adae38f7903f4e34e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
bundle install --standalone | |
digest=$(md5 -q Gemfile) | |
cmd="raise \"Gemfile changed\" if %x[md5 -q Gemfile].chomp != \"${digest}\"" | |
echo $cmd > bundle/bundler/setup.rb.new | |
cat bundle/bundler/setup.rb >> bundle/bundler/setup.rb.new | |
mv bundle/bundler/setup{.rb.new,.rb} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice!