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

10
ufw
View File

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