Skip to content

Commit

Permalink
Merge pull request #67 from kinow/exit-cleanly
Browse files Browse the repository at this point in the history
Capture Interrupt error (Ctrl+c) and cleanly exit
  • Loading branch information
kinow authored Jun 13, 2017
2 parents fce2ae1 + 058ec52 commit 1ea92c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/dashing/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ def job(name, auth_token = "")
private

def run_command(command)
system(command)
begin
system(command)
rescue Interrupt => e
say "Exiting..."
end
end

def install_widget_from_gist(gist, skip_overwrite)
Expand Down

0 comments on commit 1ea92c8

Please sign in to comment.