From 757b79b69e181dca2e06e7a057732cec2cae9208 Mon Sep 17 00:00:00 2001 From: tobspr Date: Sat, 27 Jun 2020 10:54:21 +0200 Subject: [PATCH] Update gulpfile --- gulp/gulpfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gulp/gulpfile.js b/gulp/gulpfile.js index c0b2b39d..2cf51cc3 100644 --- a/gulp/gulpfile.js +++ b/gulp/gulpfile.js @@ -104,7 +104,10 @@ gulp.task("utils.requireCleanWorkingTree", cb => { let output = $.trim(execSync("git status -su").toString("ascii")).replace(/\r/gi, "").split("\n"); // Filter files which are OK to be untracked - output = output.filter(x => x.indexOf(".local.js") < 0); + output = output + .map(x => x.replace(/[\r\n]+/gi, "")) + .filter(x => x.indexOf(".local.js") < 0) + .filter(x => x.length > 0); if (output.length > 0) { console.error("\n\nYou have unstaged changes, please commit everything first!"); console.error("Unstaged files:");