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/pywal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/pywal') diff --git a/plugins/pywal b/plugins/pywal index 161bbb5..c8ec867 100755 --- a/plugins/pywal +++ b/plugins/pywal @@ -6,8 +6,8 @@ # Author: juacq97 if ! [ -z "$1" ]; then - if [ $(mimetype --output-format %m $1 | awk -F '/' '{print $1}') == "image" ]; then - wal -i $1 + if [ "$(mimetype --output-format %m "$1" | awk -F '/' '{print $1}')" = "image" ]; then + wal -i "$1" # If you want a system notification, uncomment the next 3 lines. # notify-send -a "nnn" "Wallpaper changed!" # else -- cgit v1.2.3-70-g09d2