Skip to content

Commit

Permalink
Quit gracefully on Ctrl-C.
Browse files Browse the repository at this point in the history
close #1

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
  • Loading branch information
yeban committed Feb 16, 2016
1 parent 2d4d799 commit 059cbe2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bin/ncbi-blast-dbs
Expand Up @@ -2,4 +2,12 @@

require 'rake'
import "#{File.dirname(__FILE__)}/../lib/ncbi-blast-dbs.rake"
app = Rake.application; app.init; app.load_imports; app.top_level

trap :INT do
puts "Quitting ..."
exit!
end

Rake.application.init 'ncbi-blast-dbs'
Rake.application.load_imports
Rake.application.top_level

0 comments on commit 059cbe2

Please sign in to comment.