fix sed delimiter
This commit is contained in:
parent
b95a53e880
commit
d55460cded
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ do
|
||||||
fixed_line=${fixed_line//<\/h3>/<\/h4>} # replace '</h3>' by '</h4>'
|
fixed_line=${fixed_line//<\/h3>/<\/h4>} # replace '</h3>' by '</h4>'
|
||||||
# shellcheck disable=SC2001
|
# shellcheck disable=SC2001
|
||||||
fixed_line=$(echo "$fixed_line" | sed "s#&#\\\&#g") # escape eventual '&'
|
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"
|
done <<< "$lines"
|
||||||
|
|
||||||
# retrieving of the path of the current .gmi file
|
# retrieving of the path of the current .gmi file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue