From 0afa40a29b236da4b3cbfb56f8dda98e955badfe Mon Sep 17 00:00:00 2001 From: AleixMT Date: Tue, 9 Apr 2024 22:53:16 +0200 Subject: [PATCH] meaningless changes to trigger workflow --- src/substituteMarks.sh | 2 +- templates/template.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/substituteMarks.sh b/src/substituteMarks.sh index 5c3c060..c82674b 100644 --- a/src/substituteMarks.sh +++ b/src/substituteMarks.sh @@ -11,7 +11,7 @@ for i in $@; do mark_value=${!mark_name} if [ -n "${mark_value}" ]; then echo "Substituted ${mark_name}" - sed -i "s/{{${mark_name}}}/${mark_value}/g" "${PROJECT_FOLDER}/data/${i}.json" + awk -v search="{{${mark_name}}}" -v replacement="${mark_value}" '{gsub(search, replacement)} 1' "${PROJECT_FOLDER}/data/${i}.json" > "${PROJECT_FOLDER}/data/${i}.json.tmp" && mv "${PROJECT_FOLDER}/data/${i}.json.tmp" "${PROJECT_FOLDER}/data/${i}.json" fi done done diff --git a/templates/template.html b/templates/template.html index 43899d7..9a77b22 100644 --- a/templates/template.html +++ b/templates/template.html @@ -173,3 +173,4 @@ +