fix sed delimiter

This commit is contained in:
OniriCorpe 2024-04-30 01:42:30 +02:00
parent b95a53e880
commit d55460cded

View file

@ -79,7 +79,7 @@ do
fixed_line=${fixed_line//<\/h3>/<\/h4>} # replace '</h3>' by '</h4>'
# 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