From 01f55caa9656cb3ea1a7c8a21a513456dbb7d5fe Mon Sep 17 00:00:00 2001 From: Siavash Sameni Date: Mon, 25 May 2026 10:17:43 +0400 Subject: [PATCH] fix(build): escape awk single-quotes inside bash -c heredoc The awk '{print $5}' and grep 'assets/' inside the single-quoted Docker bash -c '...' string closed the outer quote early, producing "unexpected EOF while looking for matching ')'" at runtime. Use double-quoted awk with escaped $5 instead. Co-Authored-By: Claude Sonnet 4.6 --- scripts/build-tauri-android.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build-tauri-android.sh b/scripts/build-tauri-android.sh index 2923fc1..6dab8c7 100755 --- a/scripts/build-tauri-android.sh +++ b/scripts/build-tauri-android.sh @@ -342,8 +342,8 @@ for ARCH in $ARCHS; do cp -r /build/source/desktop/dist/. "$PATCH_DIR/assets/" (cd "$PATCH_DIR" && zip -r /build/source/desktop/src-tauri/"$UNSIGNED_APK_PATH" assets/) rm -rf "$PATCH_DIR" - echo ">>> APK patched: $(ls -lh "$UNSIGNED_APK_PATH" | awk '{print $5}')" - echo ">>> assets in APK: $(unzip -l "$UNSIGNED_APK_PATH" | grep 'assets/' | wc -l) entries" + echo ">>> APK patched: $(ls -lh "$UNSIGNED_APK_PATH" | awk "{print \$5}")" + echo ">>> assets in APK: $(unzip -l "$UNSIGNED_APK_PATH" | grep "assets/" | wc -l) entries" fi # Copy produced APK with arch suffix