From 9d868f38e8a774e9acba8a5ec4fe05cff06223e7 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sun, 18 Oct 2026 01:27:11 +0200 Subject: [PATCH] make-tester-readme: templates may have CRLF (archives of a Windows checkout) --- apps/desktop/scripts/make-tester-readme.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/scripts/make-tester-readme.sh b/apps/desktop/scripts/make-tester-readme.sh index 557f192c..00762eb1 100644 --- a/apps/desktop/scripts/make-tester-readme.sh +++ b/apps/desktop/scripts/make-tester-readme.sh @@ -53,8 +53,8 @@ TDIR="$(cd "$(dirname "$TEMPLATE")" && pwd)" TMP="$(mktemp)"; trap 'rm -f "$TMP" "$TMP.2"' EXIT # includes first (one level), then the placeholders while IFS= read -r line || [ -n "$line" ]; do - if [[ "$line" =~ ^@INCLUDE:([^@]+)@$ ]]; then cat "$TDIR/${BASH_REMATCH[1]}"; else printf '%s\n' "$line"; fi -done < "$TEMPLATE" | sed "s|@APPIMAGE@|$APPIMAGE|g" > "$TMP" + if [[ "$line" =~ ^@INCLUDE:([^@]+)@$ ]]; then tr -d " " < "$TDIR/${BASH_REMATCH[1]}"; else printf '%s\n' "$line"; fi +done < <(tr -d " " < "$TEMPLATE") | sed "s|@APPIMAGE@|$APPIMAGE|g" > "$TMP" # @SHA256:name@ and @SIZE_GB:name@ while IFS= read -r token; do