From 238a500b47a2d56f4be587bdfce2c98520946dfd Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sat, 30 Dec 2023 00:46:50 +0100 Subject: [PATCH] ignore shellcheck for SC2001 --- genlog.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/genlog.sh b/genlog.sh index 23a45fb..2c9bd4e 100755 --- a/genlog.sh +++ b/genlog.sh @@ -62,6 +62,7 @@ do # deleting the '#' of the first line and save it as title title="$(sed -n '1{s/# //p}' "$gmi_file") $2" # escaping eventual '&' (otherwise causing a bug where it is replaced by '<\!-- TITLE -->') + # shellcheck disable=SC2001 title=$(echo "$title" | sed "s#&#\\\&#g") # in the header.html, replacing the "<\-- TITLE -->" by the previously