From cfd4c7e21fd1e08bcc16e2a839dca5f157a3b8a3 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 28 Dec 2019 11:19:10 +0100 Subject: [PATCH] Fix shell linter error Did not correctly account for shell glob matching. --- .local/share/qutebrowser/userscripts/pagetopdf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/share/qutebrowser/userscripts/pagetopdf.sh b/.local/share/qutebrowser/userscripts/pagetopdf.sh index 143b030..1643009 100755 --- a/.local/share/qutebrowser/userscripts/pagetopdf.sh +++ b/.local/share/qutebrowser/userscripts/pagetopdf.sh @@ -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"