From bd16378e237a7bee0be467be4f9db5c8bb28d2e3 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Thu, 9 Mar 2023 14:12:17 +0000 Subject: [PATCH] Fixed postinstall scipts to work on msys shells --- Gruntfile.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 5cbc6d88..71055b24 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -401,13 +401,14 @@ module.exports = function (grunt) { stdout: false }, fixSnackbarMarkup: { - command: [ - `[[ "$OSTYPE" == "darwin"* ]]`, - "&&", - `sed -i '' 's/
/
/g' ./node_modules/snackbarjs/src/snackbar.js`, - "||", - `sed -i 's/
/
/g' ./node_modules/snackbarjs/src/snackbar.js` - ].join(" "), + command: function () { + switch (process.platform) { + case "darwin": + return `sed -i '' 's/
/
/g' ./node_modules/snackbarjs/src/snackbar.js`; + default: + return `sed -i 's/
/
/g' ./node_modules/snackbarjs/src/snackbar.js`; + } + }, stdout: false } },