Skip to content

Commit

Permalink
Handle interrupt signal on CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
NARKOZ committed Aug 31, 2018
1 parent 805d2ef commit 774e505
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exe/gitlab
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

$LOAD_PATH.unshift File.expand_path('../lib', __dir__)

# Exit cleanly from an early interrupt
Signal.trap('INT') { exit 1 }

require 'gitlab/cli'

Gitlab::CLI.start(ARGV)

0 comments on commit 774e505

Please sign in to comment.