diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2025-01-29 21:03:53 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2025-01-29 21:03:53 +0400 |
commit | 8c9d55dbe54a035d86f8aff05125a2562eadbc31 (patch) | |
tree | 00e4fdbf3e788b4b3861abe4790ba3cafae7253f | |
parent | d21aa4691c57deb5201b99ecef9c5e07bc611944 (diff) |
swall: dereference symlinks
-rwxr-xr-x | scripts/swall | 2 |
1 files changed, 1 insertions, 1 deletions
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}" ;; |