From df742b9ee9b1d98310c7c52b674fb76364db26dc Mon Sep 17 00:00:00 2001 From: Ava Barron Date: Tue, 5 Nov 2019 22:45:46 -0500 Subject: [PATCH] Use cd ... || exit in case cd fails. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index a08167a..dbe8e6f 100755 --- a/build.sh +++ b/build.sh @@ -13,7 +13,7 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then echo "BUILD_SOURCEVERSION: ${BUILD_SOURCEVERSION}" cp -rp src/* vscode/ - cd vscode + cd vscode || exit export npm_config_arch="$BUILDARCH" export npm_config_target_arch="$BUILDARCH"