From 6a282fe7fad6db7255f17b63f5eab5d2eee558b1 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Sun, 8 Mar 2026 22:54:27 +0900 Subject: [PATCH] fix ufw completion - fix the case when empty string is passed --- src/_ufw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_ufw b/src/_ufw index 98f4b0c..08ea991 100644 --- a/src/_ufw +++ b/src/_ufw @@ -42,7 +42,7 @@ _ufw_logging() { local params additional second second=$words[2] - if [ ! -z $second ]; then + if [[ ! -z "$second" ]]; then return fi @@ -58,7 +58,7 @@ _ufw_delete() { second=$words[2] - if [ ! -z $second ]; then + if [[ ! -z "$second" ]]; then return fi