summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorache <ache@ache.one>2023-02-26 01:18:43 +0100
committerache <ache@ache.one>2023-02-26 01:18:43 +0100
commite3f19eccfcc4954d765dd3a4e71593b532e2b24b (patch)
treee67d5e8d67110bb4fd974e2b3838c07877f5a76b /functions
parentConfigur Lean (diff)
Fix environment variable
Diffstat (limited to 'functions')
-rw-r--r--functions/pdfpextr.fish2
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 \