]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #839
authorArun Prakash Jana <engineerarun@gmail.com>
Mon, 18 Jan 2021 13:29:59 +0000 (18:59 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Mon, 18 Jan 2021 13:29:59 +0000 (18:59 +0530)
plugins/wall

index 15f157f0703a77ff8f947836eb812bca6a8996ac..2471d06615292dbe404f7d17b2a7b16446eb207a 100755 (executable)
@@ -12,7 +12,7 @@ cmd_exists () {
 }
 
 if [ -n "$1" ]; then
-       if [ "$(file --mime-type "$1" | awk '{print $2}' | awk -F '/' '{print $1}')" = "image" ]; then
+       if [ "$(file --mime-type "$1" | awk '{print $NF}' | awk -F '/' '{print $1}')" = "image" ]; then
         if [ "$(cmd_exists nitrogen)" -eq "0" ]; then
                nitrogen --set-zoom-fill --save "$1"
         elif [ "$(cmd_exists wal)" -eq "0" ]; then