From 4205ea49a893e4d1807a39268739c13754d40cf2 Mon Sep 17 00:00:00 2001 From: Richard Thombs Date: Wed, 14 Oct 2015 16:53:08 +0100 Subject: [PATCH] fix: correctly detect when running under grunt on Windows --- tasks/command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/command.js b/tasks/command.js index 6855bf3..ef2130c 100755 --- a/tasks/command.js +++ b/tasks/command.js @@ -9,7 +9,7 @@ var _ = require('lodash'); var options = _.defaults({}, defaults); -if (process.argv.join('').indexOf('/grunt') === -1) { +if (process.argv.join('').replace(/\\/g,'/').indexOf('/grunt') === -1) { program .version('0.1.7')