diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-04-07 09:19:30 -0700 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-06-10 01:42:17 -0500 |
commit | 8c1b9e77b08b52018a7b1b38d51dcbcd168938f4 (patch) | |
tree | 8005f970b6b18cf6706eb99328d7698cc7b83d57 /exe | |
parent | 76e6a9d74d2ba925b60712d3a7b33aef23be9fbc (diff) | |
download | bundler-8c1b9e77b08b52018a7b1b38d51dcbcd168938f4.tar.gz |
[bundle] Automatically trampoline to postit
Except on bundle exec, since that would be too slow
Diffstat (limited to 'exe')
-rwxr-xr-x | exe/bundle | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/exe/bundle b/exe/bundle index 3fb4ccfce9..0047906251 100755 --- a/exe/bundle +++ b/exe/bundle @@ -17,6 +17,10 @@ end require "bundler/friendly_errors" Bundler.with_friendly_errors do + if !"exec".start_with?(ARGV.first || " ") && postit = Gem.bin_path("postit", "postit") + Kernel.exec(postit, *ARGV) + end + require "bundler/cli" # Allow any command to use --help flag to show help for that command |