preview-tabbed: fixed if statement

This commit is contained in:
Oktay Imanzade 2024-02-29 04:30:06 +04:00 committed by GitHub
parent 7efd6db873
commit ecc0a4d38b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,7 +180,7 @@ previewer_loop () {
fi
;;
inode/directory)
if [[ -z $PICTURES_DIR && "$FILE" == *"$PICTURES_DIR"* ]]; then
if [[ ! -z $PICTURES_DIR && "$FILE" == *"$PICTURES_DIR"* ]] ; then
if type sxiv >/dev/null 2>&1 ; then
( sxiv -te "$XID" "$FILE" 2>/dev/null || $TERMINAL "$XID" -e nnn "$FILE" ) &
elif type nsxiv >/dev/null 2>&1 ; then