From 8c9d55dbe54a035d86f8aff05125a2562eadbc31 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Wed, 29 Jan 2025 21:03:53 +0400 Subject: swall: dereference symlinks --- scripts/swall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/swall b/scripts/swall index 9c2a338..bc288b8 100755 --- a/scripts/swall +++ b/scripts/swall @@ -60,7 +60,7 @@ shift $((OPTIND - 1)) [ ${#} != 0 ] && err "${0}: Invalid usage" "Try '${0} -h' for help." if [ -n "${input}" ]; then - case $(file -b --mime-type "${input}") in + case $(file -L -b --mime-type "${input}") in image/*) image="${input}" ;; inode/directory) waldir="${input}" ;; -- cgit v1.2.3