diff options
author | ache <ache@ache.one> | 2023-02-26 01:18:43 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2023-02-26 01:18:43 +0100 |
commit | e3f19eccfcc4954d765dd3a4e71593b532e2b24b (patch) | |
tree | e67d5e8d67110bb4fd974e2b3838c07877f5a76b /functions | |
parent | Configur Lean (diff) |
Fix environment variable
Diffstat (limited to 'functions')
-rw-r--r-- | functions/pdfpextr.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/pdfpextr.fish b/functions/pdfpextr.fish index 8e4116f..a550bb3 100644 --- a/functions/pdfpextr.fish +++ b/functions/pdfpextr.fish @@ -4,7 +4,7 @@ function pdfpextr -a pStart pEnd filename # $2 is the last page of the range to extract # $3 is the input file # output file will be named "inputfile_pXX-pYY.pdf" - set -x fileOut (string split -r -m1 . $filename)[1]_p{$pStart}-p{$pEnd}.pdf + set -l fileOut (string split -r -m1 . $filename)[1]_p{$pStart}-p{$pEnd}.pdf printf $fileOut gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER \ |