ignore shellcheck for SC2001

This commit is contained in:
OniriCorpe 2023-12-30 00:46:50 +01:00
parent 6faf158f3f
commit 238a500b47

View file

@ -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