Skip to content
Permalink
Browse files

Merge pull request #1318 from nanoc/gh-1309

Handle SIGINT in shell
  • Loading branch information...
ddfreyne committed Feb 19, 2018
2 parents 3afacca + 545c22b commit e7d915aa743021dac6f999d05c12af1e9055c2af
Showing with 3 additions and 0 deletions.
  1. +3 −0 nanoc/lib/nanoc/cli/commands/shell.rb
@@ -13,6 +13,9 @@ class Shell < ::Nanoc::CLI::CommandRunner
def run
require 'pry'

# Needed to make pry behave properly sometimes -- see nanoc/nanoc#1309
Signal.trap('SIGINT') { raise Interrupt }

@site = load_site
Nanoc::Int::Compiler.new_for(@site).run_until_preprocessed if options[:preprocess]

0 comments on commit e7d915a

Please sign in to comment.
You can’t perform that action at this time.