aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/nwal
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/nwal')
-rwxr-xr-xplugins/nwal4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/nwal b/plugins/nwal
index 2f18b08..32d0218 100755
--- a/plugins/nwal
+++ b/plugins/nwal
@@ -6,8 +6,8 @@
# Author: juacq97
if ! [ -z "$1" ]; then
- if [ $(mimetype --output-format %m $1 | awk -F '/' '{print $1}') == "image" ]; then
- nitrogen --set-zoom-fill --save $1
+ if [ "$(mimetype --output-format %m "$1" | awk -F '/' '{print $1}')" = "image" ]; then
+ nitrogen --set-zoom-fill --save "$1"
# If you want a system notification, uncomment the next 3 lines.
# notify-send -a "nnn" "Wallpaper changed!"
# else