AutoYADM commit: 2025-04-22 13:30:13
This commit is contained in:
parent
c6b5f19709
commit
0aae02e029
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,12 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
set -l src (path resolve $argv[1])
|
set -l src (path resolve $argv[1])
|
||||||
set -l targ (string replace --filter '.typ' '.pdf')
|
# echo $src
|
||||||
|
# string replace
|
||||||
|
set -l targ (string replace --filter '.typ' '.pdf' $src)
|
||||||
|
if test -f "$targ"
|
||||||
|
|
||||||
|
echo $targ
|
||||||
|
else
|
||||||
|
echo no file
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue