Exit with error if no files are specified

This commit is contained in:
Dan Church 2022-10-31 16:11:54 -05:00
parent 306fb7e8c9
commit fdbe2fdb88
Signed by: h3xx
GPG Key ID: EA2BF379CD2CDBD0
1 changed files with 5 additions and 0 deletions

View File

@ -104,6 +104,11 @@ for ARG; do
fi
done
if [[ ${#FILES[@]} -eq 0 ]]; then
USAGE >&2
exit 1
fi
file_size() {
stat \
--format='%s' \