diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-07-28 16:49:46 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-07-28 16:49:46 +0400 |
commit | 023ef2dbaf821db73fa5622e79c20c05f2bd3baf (patch) | |
tree | 35d4b5627ce37ed0e028a5a489880e58bda08b23 /scripts/swall | |
parent | 978df7760a1771f0ffb9b61f5929931d90eae3f3 (diff) |
swall: bug fix
Diffstat (limited to 'scripts/swall')
-rwxr-xr-x | scripts/swall | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/swall b/scripts/swall index b7cb841..b023534 100755 --- a/scripts/swall +++ b/scripts/swall @@ -55,6 +55,9 @@ while getopts "hcd:" option; do esac done +shift $((OPTIND - 1)) + +[ ${#} != 0 ] && err "${0}: Invalid usage" "Try '${0} -h' for help." if [ -n "${input}" ]; then case $(file -b --mime-type "${input}") in |