diff options
author | Andre Arko <andre@arko.net> | 2010-04-02 23:43:45 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-04-02 23:43:45 -0700 |
commit | c5850c968d658946311b195b631db93aa0198c26 (patch) | |
tree | 3c5416d97c2861eae9506bfd73fd13ed012e9a28 | |
parent | 1951e724238c15c711a5e84d07270118dd092230 (diff) | |
download | bundler-c5850c968d658946311b195b631db93aa0198c26.tar.gz |
Trap INT and quit gracefully
-rw-r--r-- | bin/bundle | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/bundle b/bin/bundle index 1877540982..d2e50814b5 100644 --- a/bin/bundle +++ b/bin/bundle @@ -14,4 +14,7 @@ begin rescue Bundler::BundlerError => e Bundler.ui.error e.message exit e.status_code +rescue Interrupt + Bundler.ui.error "\nQuitting..." + exit 1 end
\ No newline at end of file |