fixed gallery.bash substitution

This commit is contained in:
Louis Heredero 2024-11-10 01:46:25 +01:00
parent ba0f138ef2
commit ac3e577020
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7

View File

@ -16,7 +16,7 @@ cnt="$#"
i=1 i=1
for f for f
do do
f2="${f/typ/png}" f2="${f%.typ}.png"
echo "($i/$cnt) $f -> $f2" echo "($i/$cnt) $f -> $f2"
typst c --root ./ "$f" "$f2" typst c --root ./ "$f" "$f2"
i=$((i+1)) i=$((i+1))
@ -32,7 +32,7 @@ then
i=1 i=1
for f for f
do do
f2="${f/typ/pdf}" f2="${f%.typ}.pdf"
echo "($i/$cnt) $f -> $f2" echo "($i/$cnt) $f -> $f2"
typst c --root ./ "$f" "$f2" typst c --root ./ "$f" "$f2"
i=$((i+1)) i=$((i+1))