diff --git a/scripts/deploy-gas.sh b/scripts/deploy-gas.sh index 99cafa0..8f8a145 100755 --- a/scripts/deploy-gas.sh +++ b/scripts/deploy-gas.sh @@ -32,6 +32,9 @@ yarn build TARGET="$REPO" if [[ -n "$SUBDIR" ]]; then TARGET="$REPO/$SUBDIR" + if [[ ! -d "$TARGET" ]]; then + echo "ERROR: subdir tidak ada: $TARGET"; exit 1 + fi fi cd "$TARGET" echo "--- clasp push ($TARGET, profil $PROFILE) ---"