summaryrefslogtreecommitdiff
path: root/exe/bundle
diff options
context:
space:
mode:
Diffstat (limited to 'exe/bundle')
-rwxr-xr-xexe/bundle4
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