Commit 00ea029d06

00ea029d0652da12d0f4237769e7020b72cfa7f3

parent: d53aa8ab9f

Verified · cmc ci/gitbay-security: success

cmc <hello@cleberg.net> · 2026-11-01 05:44 UTC

Quote $all in the scene index lookup

Ref #11

Layout: unified · split

scripts/take-screenshots.sh +1 −1
@@ -42,7 +42,7 @@ shoot() { # device name, output folder
42 xcrun simctl install "$device" "$app" 42 xcrun simctl install "$device" "$app"
43 mkdir -p "$out/$2" 43 mkdir -p "$out/$2"
44 for scene in $scenes; do 44 for scene in $scenes; do
45 n="$(printf '%s\n' $all | grep -nx "$scene" | cut -d: -f1)" 45 n="$(printf '%s\n' "$all" | tr ' ' '\n' | grep -nx "$scene" | cut -d: -f1)"
46 [ -n "$n" ] || { echo "Unknown scene $scene; one of: $all" >&2; exit 1; } 46 [ -n "$n" ] || { echo "Unknown scene $scene; one of: $all" >&2; exit 1; }
47 xcrun simctl terminate "$device" "$bundle" 2>/dev/null || true 47 xcrun simctl terminate "$device" "$bundle" 2>/dev/null || true
48 # Set per launch: changing content_size restarts the status bar and drops the override. 48 # Set per launch: changing content_size restarts the status bar and drops the override.