Selaa lähdekoodia

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

Ava Barron 5 vuotta sitten
vanhempi
sitoutus
df742b9ee9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      build.sh

+ 1 - 1
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"