Fix shell linter error
Did not correctly account for shell glob matching.
This commit is contained in:
parent
bc4b416f53
commit
cfd4c7e21f
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
# use title of current page / selected text as filename
|
||||
filename=${QUTE_SELECTED_TEXT:-$QUTE_TITLE}
|
||||
# revert to default name if nothing else is set; remove special chars
|
||||
filename=$(echo ${filename:-downloaded.pdf} | sed 's/[<>,/]/_/g')
|
||||
filename=$(echo "${filename:-downloaded.pdf}" | sed 's/[<>,/]/_/g')
|
||||
|
||||
# print to pdf
|
||||
echo "print --pdf '$QUTE_DOWNLOAD_DIR/${1:-$filename}.pdf'" >>"$QUTE_FIFO"
|
||||
|
|
Loading…
Reference in a new issue