From 30884430254811b9b9e04fa9fe9d1ad0f1fdc2b3 Mon Sep 17 00:00:00 2001 From: mrlp4 Date: Thu, 1 Aug 2024 16:51:03 +0200 Subject: [PATCH] debug --- .github/scripts/modify_html/add_meta.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/scripts/modify_html/add_meta.sh b/.github/scripts/modify_html/add_meta.sh index 019cb9b..0112b64 100644 --- a/.github/scripts/modify_html/add_meta.sh +++ b/.github/scripts/modify_html/add_meta.sh @@ -1,13 +1,12 @@ #!/bin/sh -metas=$(cat <<'EOF' - - +metas=' + ' - -EOF -) +file="$GITHUB_WORKSPACE/build/index.html" -sed "/<\/head>/i\\ $metas" "$GITHUB_WORKSPACE/build/index.html" +sed -i "/<\/head>/i\\ +$(echo "$metas" | sed 's/$/\\n/' | tr -d '\n')\\ +" "$file"