fix: escape tahoe update trap vars

This commit is contained in:
Peter Steinberger
2026-04-08 02:28:59 +01:00
parent 9a165e25ac
commit c5392f3640

View File

@@ -671,7 +671,7 @@ run_logged_guest_current_user_sh() {
runner_body="$(cat <<EOF
set -eu
set -o pipefail
trap 'status=$?; printf "%s\n" "$status" > "$done_path"; exit "$status"' EXIT
trap 'status=\$?; printf "%s\n" "\$status" > "$done_path"; exit "\$status"' EXIT
umask 022
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin:\${PATH:-}"
if [ -z "\${HOME:-}" ]; then export HOME="/Users/\$(id -un)"; fi