From e0cddc8bc64d62edc02dd50eea2c8f88686b0481 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Tue, 9 Aug 2016 15:27:30 +0200 Subject: [PATCH] improve test script --- scripts/test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/test.sh b/scripts/test.sh index e712db19964..beea6a1352b 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -14,7 +14,11 @@ cd $ROOT test -d node_modules || ./scripts/npm.sh install # Get electron -./node_modules/.bin/gulp electron +if [[ "$OSTYPE" == "darwin"* ]]; then + test -d .build/electron/Code\ -\ OSS.app || ./node_modules/.bin/gulp electron +else + test -d .build/electron/code-oss || ./node_modules/.bin/gulp electron +fi # Build test -d out || ./node_modules/.bin/gulp compile