From 83bbe70c802bdc9c212543eb88bffe7740fcbc21 Mon Sep 17 00:00:00 2001 From: fbt Date: Mon, 18 Nov 2019 04:07:42 +0300 Subject: [PATCH] Fix: ufw does nothing without a positional argument even if it's not required Signed-off-by: fbt --- ufw | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ufw b/ufw index 163b85b..cd1e183 100755 --- a/ufw +++ b/ufw @@ -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)