about summary refs log tree commit diff stats
path: root/build
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 13:51:31 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 13:51:31 +0200
commite1de7878544c42c73f90ddb8493ec7a9cb667625 (patch)
tree5c10e11ca01738fb4ee95b3c953ee77afa1d876a /build
parentfix(templates/latex/presentation/fix_notes.sh): Disable shellcheck warning (diff)
downloadflake-templates-e1de7878544c42c73f90ddb8493ec7a9cb667625.tar.gz
flake-templates-e1de7878544c42c73f90ddb8493ec7a9cb667625.zip
chore(version): v0.8.0 v0.8.0
Diffstat (limited to 'build')
-rwxr-xr-xbuild/latex/presentation/scripts/fix_notes.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/latex/presentation/scripts/fix_notes.sh b/build/latex/presentation/scripts/fix_notes.sh
index c5caf5b..fc22581 100755
--- a/build/latex/presentation/scripts/fix_notes.sh
+++ b/build/latex/presentation/scripts/fix_notes.sh
@@ -19,5 +19,8 @@ rg '\\note' --files-with-matches | while IFS= read -r file; do
     [ "$(basename "$file")" = "$(basename "$0")" ] && continue
 
     echo "Fixing: '$file'"
+
+    # The expressions should expand, when `sed` executes them.
+    # shellcheck disable=SC2016
     sed --in-place 's/^\(.*\)\\note\(.*\){\(.*\)}/printf "%s\\\\\\note%s{%s}" "\1" "\2" "$( echo "\3" | sed "s@ä@\\\&auml\;@g" | sed "s@ö@\\\&ouml\;@g" | sed "s@ü@\\\&uuml\;@g" | sed "s@Ä@\\\&Auml\;@g" | sed "s@Ö@\\\&Ouml\;@g" | sed "s@Ü@\\\&Uuml\;@g" | sed "s@ß@\\\&szlig\;@g" | sed "s@→@\\\&rarr\;@g" )"/eg' "$file"
 done