7

If I use Grunt Task Runner with grunt-shell, I'm not able to exit the grunt using ctrl-c [SIGINT].

grunt.registerTask('serve', [
  'less',
  'autoprefixer',
  'shell:hologram', // grunt-shell task
  'connect:livereload',
  'watch'
]);

Here is how the shell is configured:

grunt.initConfig({

...

  shell: {
    options: {
      failOnError: false
    },
    hologram: {
      command: 'bundle exec hologram'
    },
  },

...

}
Saneef
  • 8,620
  • 7
  • 29
  • 42

1 Answers1

0

I had the same problem when I run Grunt from Git Bash. And my solution was to update to the latest version of git bash and exit with CTRL+SHIFT+C. It is very likely that CTRL+SHIFT+C will suffice (even with older versions).

Esteban
  • 1,496
  • 17
  • 22