From 2ba315822f7e9d00597dd0a8511182dac182f67e Mon Sep 17 00:00:00 2001 From: kbackowski Date: Sun, 12 May 2013 20:15:22 +0200 Subject: [PATCH] Fixed watchIgnorePatterns assignment --- lib/forever/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/forever/cli.js b/lib/forever/cli.js index 01107b20..d61a5e34 100644 --- a/lib/forever/cli.js +++ b/lib/forever/cli.js @@ -204,7 +204,7 @@ var getOptions = cli.getOptions = function (file) { }); options.watchIgnore = options.watchIgnore || []; - options.watchIgnorePatterns = !Array.isArray(options.watchIgnore) + options.watchIgnorePatterns = Array.isArray(options.watchIgnore) ? options.watchIgnore : [options.watchIgnore];