diff --git a/docker/local-emulator/qemu/build-image.sh b/docker/local-emulator/qemu/build-image.sh index 1b082d82c..5a8c4071b 100755 --- a/docker/local-emulator/qemu/build-image.sh +++ b/docker/local-emulator/qemu/build-image.sh @@ -662,9 +662,8 @@ for arch in "${TARGET_ARCHS[@]}"; do download_cloud_image "$arch" "$local_base" if [ "${SKIP_DOCKER_BUILD:-0}" = "1" ]; then log "SKIP_DOCKER_BUILD=1: reusing pre-built Docker bundle" - local expected_bundle="$IMAGE_DIR/emulator-${arch}-docker-images.tar.gz" - if [ ! -f "$expected_bundle" ]; then - err "Pre-built bundle not found: $expected_bundle" + if [ ! -f "$IMAGE_DIR/emulator-${arch}-docker-images.tar.gz" ]; then + err "Pre-built bundle not found: $IMAGE_DIR/emulator-${arch}-docker-images.tar.gz" exit 1 fi else diff --git a/packages/stack-cli/src/commands/emulator.ts b/packages/stack-cli/src/commands/emulator.ts index 9088bbc3f..942b436cd 100644 --- a/packages/stack-cli/src/commands/emulator.ts +++ b/packages/stack-cli/src/commands/emulator.ts @@ -151,7 +151,11 @@ function emulatorScriptsDir(): string { // npm pack strips the execute bit from non-`bin` files, so restore it here. function ensureExecutable(scriptsDir: string): string { - try { chmodSync(join(scriptsDir, "run-emulator.sh"), 0o755); } catch { /* best-effort */ } + try { + chmodSync(join(scriptsDir, "run-emulator.sh"), 0o755); + } catch { + // best-effort + } return scriptsDir; }