diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-04 13:50:36 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-04 13:50:36 +0200 |
commit | c1e30d8dc266865b4cd5598f728a6e99c232e9af (patch) | |
tree | 4739529eb21bbf78455b445317969f74a619ccc5 /templates/latex | |
parent | chore(build): Recreate (diff) | |
download | flake-templates-c1e30d8dc266865b4cd5598f728a6e99c232e9af.tar.gz flake-templates-c1e30d8dc266865b4cd5598f728a6e99c232e9af.zip |
fix(templates/latex/presentation/fix_notes.sh): Disable shellcheck warning
Diffstat (limited to '')
-rwxr-xr-x | templates/latex/presentation/scripts/fix_notes.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/latex/presentation/scripts/fix_notes.sh b/templates/latex/presentation/scripts/fix_notes.sh index c5caf5b..fc22581 100755 --- a/templates/latex/presentation/scripts/fix_notes.sh +++ b/templates/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@ä@\\\ä\;@g" | sed "s@ö@\\\ö\;@g" | sed "s@ü@\\\ü\;@g" | sed "s@Ä@\\\Ä\;@g" | sed "s@Ö@\\\Ö\;@g" | sed "s@Ü@\\\Ü\;@g" | sed "s@ß@\\\ß\;@g" | sed "s@→@\\\&rarr\;@g" )"/eg' "$file" done |