diff options
author | Terence Lee <hone02@gmail.com> | 2012-12-23 20:15:40 -0500 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2012-12-23 20:15:40 -0500 |
commit | 69c5d8bbe88ff50ba116240fffdaa6d2f7161f83 (patch) | |
tree | f41a5b10c9b73bb4d0f3bdca2eadc250677f2b0c /bin | |
parent | d80d79b095195c243e9dd2108e28783324df4eed (diff) | |
download | bundler-69c5d8bbe88ff50ba116240fffdaa6d2f7161f83.tar.gz |
Avoid crazy stack traces from early Ctrl-Cs, thanks @mitchellh!
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bundle | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/bundle b/bin/bundle index 53997cf2f4..413f97e112 100755 --- a/bin/bundle +++ b/bin/bundle @@ -1,4 +1,9 @@ #!/usr/bin/env ruby + +# Trap interrupts to quit cleanly. See +# https://twitter.com/mitchellh/status/283014103189053442 +Signal.trap("INT") { exit 1 } + require 'bundler' # Check if an older version of bundler is installed $:.each do |path| |