Use cd ... || exit in case cd fails.

This commit is contained in:
Ava Barron 2019-11-05 22:45:46 -05:00 committed by GitHub
parent cfc5bbd51e
commit df742b9ee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"