From ac3e577020bbd0bd2943d5e148ab99dc38609e22 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Sun, 10 Nov 2024 01:46:25 +0100 Subject: [PATCH] fixed gallery.bash substitution --- gallery.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery.bash b/gallery.bash index f87679c..0daab0f 100644 --- a/gallery.bash +++ b/gallery.bash @@ -16,7 +16,7 @@ cnt="$#" i=1 for f do - f2="${f/typ/png}" + f2="${f%.typ}.png" echo "($i/$cnt) $f -> $f2" typst c --root ./ "$f" "$f2" i=$((i+1)) @@ -32,7 +32,7 @@ then i=1 for f do - f2="${f/typ/pdf}" + f2="${f%.typ}.pdf" echo "($i/$cnt) $f -> $f2" typst c --root ./ "$f" "$f2" i=$((i+1))