]> git.g-eek.se Git - users/gustav/scripts.git/commitdiff
[unoconv-display] Bugfix quotation problem
authorGustav Eek <gustav.eek@fripost.org>
Wed, 30 Nov 2022 09:32:35 +0000 (10:32 +0100)
committerGustav Eek <gustav.eek@fripost.org>
Mon, 27 Mar 2023 20:23:26 +0000 (22:23 +0200)
A filename variable needed quotation in one line.

unoconv-display

index 8ba06f59070181d5232556490db4d29ab8625f9d..3b45709b28a9c1c0eebbcdd663015ac006d1b595 100644 (file)
@@ -22,7 +22,7 @@ if [ "$1" == "-e" ]; then fmt=emacs; shift; else fmt=pdf; fi
 if [ -n "$1" ]; then file=$1
 else file="$tmp/$$"; cat > "$file"; fi
 sha=$(sha1sum "$file")
-base=$(basename ${file%.*})
+base="$(basename "${file%.*}")"
 dir="$cache/${sha:0:16}"
 pdf="$dir/$base.pdf"
 txt="$dir/$base.txt"