From 1cca9e4b72b106374f203890b266f18609deefe3 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 22 Nov 2019 02:14:25 +0530 Subject: shellcheck fixes --- plugins/readit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/readit') diff --git a/plugins/readit b/plugins/readit index e0058db..4f47992 100755 --- a/plugins/readit +++ b/plugins/readit @@ -6,10 +6,10 @@ # Author: Arun Prakash Jana if ! [ -z "$1" ]; then - tmpf=`basename "$1"` + tmpf="$(basename "$1")" tmpf="${TMPDIR:-/tmp}"/"${tmpf%.*}" - if [ $(head -c 4 "$1") = "%PDF" ]; then + if [ "$(head -c 4 "$1")" = "%PDF" ]; then # Convert using pdftotext pdftotext -nopgbrk -layout "$1" - | sed 's/\xe2\x80\x8b//g' > "$tmpf".txt -- cgit v1.2.3-70-g09d2