AutoYADM commit: 2025-04-22 14:10:12

This commit is contained in:
Daniel Fichtinger 2025-04-22 14:10:13 -04:00
parent 65272a1ba3
commit f36cf2e410

View file

@ -17,12 +17,14 @@ function find_pdf
end
end
# only return status 1 if -q not set
if set -q _flag_q
set ret 1
else
set ret 0
end
# only echo if -q not set
function qecho
if not set -q _flag_q
echo $argv[1]
@ -32,7 +34,7 @@ end
set -l src (path resolve $argv[1])
# echo $src
# string replace
if not string match -q '.typ' $src
if not string match -q '*.typ' $src
qecho "$(path basename $src) is not a Typst file!"
return $ret
end