Skip to content

Instantly share code, notes, and snippets.

@krutten
Forked from jlindley/b.bash
Created January 23, 2012 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krutten/1665801 to your computer and use it in GitHub Desktop.
Save krutten/1665801 to your computer and use it in GitHub Desktop.
Bundle check then bundle install if needed, then bundle exec.
#!/usr/bin/env bash
(bundle check || bundle --local) && bundle exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment