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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# only return status 1 if -q not set
|
||||||
if set -q _flag_q
|
if set -q _flag_q
|
||||||
set ret 1
|
set ret 1
|
||||||
else
|
else
|
||||||
set ret 0
|
set ret 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# only echo if -q not set
|
||||||
function qecho
|
function qecho
|
||||||
if not set -q _flag_q
|
if not set -q _flag_q
|
||||||
echo $argv[1]
|
echo $argv[1]
|
||||||
|
@ -32,7 +34,7 @@ end
|
||||||
set -l src (path resolve $argv[1])
|
set -l src (path resolve $argv[1])
|
||||||
# echo $src
|
# echo $src
|
||||||
# string replace
|
# 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!"
|
qecho "$(path basename $src) is not a Typst file!"
|
||||||
return $ret
|
return $ret
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue