mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix #839
This commit is contained in:
parent
86abd83dfd
commit
5d8738544b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue