Browse Source

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

Signed-off-by: fbt <fbt@fleshless.org>
master 1.15.2
Jack L. Frost 2 years ago
parent
commit
83bbe70c80
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      ufw

+ 7
- 3
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)


Loading…
Cancel
Save