mirror of
https://codeberg.org/h3xx/optipdf
synced 2024-08-15 00:03:23 +00:00
Exit with error if no files are specified
This commit is contained in:
parent
306fb7e8c9
commit
fdbe2fdb88
1 changed files with 5 additions and 0 deletions
5
optipdf
5
optipdf
|
@ -104,6 +104,11 @@ for ARG; do
|
|||
fi
|
||||
done
|
||||
|
||||
if [[ ${#FILES[@]} -eq 0 ]]; then
|
||||
USAGE >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
file_size() {
|
||||
stat \
|
||||
--format='%s' \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue