From d55460cded5f2d1ab2b43d182b5c9defc6e067c1 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 30 Apr 2024 01:42:30 +0200 Subject: [PATCH] fix sed delimiter --- genlog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genlog.sh b/genlog.sh index 02da0fa..a3933b7 100755 --- a/genlog.sh +++ b/genlog.sh @@ -79,7 +79,7 @@ do fixed_line=${fixed_line//<\/h3>/<\/h4>} # replace '' by '' # shellcheck disable=SC2001 fixed_line=$(echo "$fixed_line" | sed "s#&#\\\&#g") # escape eventual '&' - sed -i "s${line}£${fixed_line}£" "$tempdir/body.html" + sed -i "s^${line}^${fixed_line}^" "$tempdir/body.html" done <<< "$lines" # retrieving of the path of the current .gmi file