From d08fce5fd5eca1652b6ef50ce1e29af467ac4692 Mon Sep 17 00:00:00 2001 From: Andrew Quenehen Date: Thu, 6 Aug 2026 09:07:58 -0300 Subject: [PATCH] Fix fused Switch build polluting GAME_LOVE path capture. Route common.sh say() to stderr so sourcing it before pack_game_love does not mix progress lines into command substitution output. --- scripts/switch/common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/switch/common.sh b/scripts/switch/common.sh index 61611a4d..b08494dc 100644 --- a/scripts/switch/common.sh +++ b/scripts/switch/common.sh @@ -8,7 +8,8 @@ if [ -z "${ROOT:-}" ]; then fi export ROOT -say() { printf '\033[1;32m==>\033[0m %s\n' "$*"; } +# Progress on stderr so command-substitution (e.g. pack_game_love) stays a bare path. +say() { printf '\033[1;32m==>\033[0m %s\n' "$*" >&2; } fail() { printf '\033[1;31merror:\033[0m %s\n' "$*" >&2; exit 1; } # Print SHA-256 hex digest of PATH. Prefers shasum, falls back to sha256sum.