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

4
ufw
View File

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