Safely handle odd chars in filenames

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
pull/2226/head
Johannes Marbach 1 month ago committed by GitHub
parent 3fe74be1bd
commit 0711a683bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -36,6 +36,6 @@ install -vm644 "$tmp_dir/katex/katex.min.css" "$root/static/css/katex.min.css"
# Remove any existing fonts and move the new ones into place.
rm -rvf "$root"/static/css/fonts/KaTeX*
while read -r file; do
while IFS= read -r -d '' file; do
install -vm644 "$file" "$root/static/css/fonts"
done < <(find "$tmp_dir/katex/fonts" -maxdepth 1 -name "KaTeX*.woff2")
done < <(find "$tmp_dir/katex/fonts" -maxdepth 1 -name "KaTeX*.woff2" -print0)

Loading…
Cancel
Save