AutoYADM commit: 2025-04-22 14:10:12
This commit is contained in:
parent
65272a1ba3
commit
f36cf2e410
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue