1
0
mirror of synced 2024-11-14 18:27:40 +01:00

Fixed postinstall scipts to work on msys shells

This commit is contained in:
n1474335 2023-03-09 14:12:17 +00:00
parent 65e431bd9e
commit bd16378e23

View File

@ -401,13 +401,14 @@ module.exports = function (grunt) {
stdout: false
},
fixSnackbarMarkup: {
command: [
`[[ "$OSTYPE" == "darwin"* ]]`,
"&&",
`sed -i '' 's/<div id=snackbar-container\\/>/<div id=snackbar-container>/g' ./node_modules/snackbarjs/src/snackbar.js`,
"||",
`sed -i 's/<div id=snackbar-container\\/>/<div id=snackbar-container>/g' ./node_modules/snackbarjs/src/snackbar.js`
].join(" "),
command: function () {
switch (process.platform) {
case "darwin":
return `sed -i '' 's/<div id=snackbar-container\\/>/<div id=snackbar-container>/g' ./node_modules/snackbarjs/src/snackbar.js`;
default:
return `sed -i 's/<div id=snackbar-container\\/>/<div id=snackbar-container>/g' ./node_modules/snackbarjs/src/snackbar.js`;
}
},
stdout: false
}
},