From a801f5f0e6649ba30304f1ad8bdedffa7cebd129 Mon Sep 17 00:00:00 2001 From: player Date: Thu, 1 Oct 2026 08:41:15 +0700 Subject: [PATCH] deploy-gas.sh: validasi subdir + pesan error jelas --- scripts/deploy-gas.sh | 3 +++ 1 file changed, 3 insertions(+) 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) ---"