Skip to content

Commit

Permalink
lf-thumbnail: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
XPhyro committed Aug 23, 2024
1 parent befacd5 commit 03796e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sh/util/integration/lf/lf-thumbnail
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ thumbnail() {
esac
}

if [ "$#" -eq 0 ]; then
exit 0
elif [ "$#" -eq 1 ] && ! [ -d "$1" ]; then
[ "$#" -eq 0 ] && exit 0

if [ "$#" -eq 1 ] && ! [ -d "$1" ]; then
printf "%s\n" "Thumbnailing $1." >&2
thumbnail "$1" >&2
else
Expand Down

0 comments on commit 03796e6

Please sign in to comment.