From 254446c51174ae96ec923696172e3cc35fa7f627 Mon Sep 17 00:00:00 2001 From: Stefanos Togkoulidis Date: Wed, 4 Jul 2018 10:57:05 +0300 Subject: [PATCH] Make the shell conditional more compat with Travis --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e421d8830a..223e93f766 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "sprintf-js": "^1.1.1" }, "scripts": { - "check-gb-unused-babelrc": "cd gutenberg/; git ls-files --error-unmatch .babelrc 2>/dev/null; ss=$?; cd ..; (if [[ $ss -gt 0 ]]; then (exit 0); else (echo \"'.babelrc' is tracked in Gutenberg, cannot overwrite!\"; exit 1); fi)", + "check-gb-unused-babelrc": "cd gutenberg/; git ls-files --error-unmatch .babelrc 2>/dev/null; ss=$?; cd ..; (if [ \"$ss\" -gt 0 ]; then (exit 0); else (echo \"'.babelrc' is tracked in Gutenberg, cannot overwrite!\"; exit 1); fi)", "bypass-gb-babel": "echo '{\"presets\": [\"@wordpress/default\"]}' > gutenberg/.babelrc", "pre-build": "yarn check-gb-unused-babelrc && yarn bypass-gb-babel", "start": "yarn pre-build && yarn react-native start",