Fix: ufw does nothing without a positional argument even if it's not required

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2019-11-18 04:07:42 +03:00
parent 47fe62a7c8
commit 83bbe70c80
1 changed files with 7 additions and 3 deletions

10
ufw
View File

@ -389,9 +389,13 @@ main() {
case "${action:-upload}" in
upload)
for t in "$@"; do
upload "$t"
done
if (( $# )); then
for t in "$@"; do
upload "$t"
done
else
upload
fi
;;
url)