fix ufw completion

- fix the case when empty string is passed
This commit is contained in:
Shohei YOSHIDA 2026-03-08 22:54:27 +09:00
parent c7f779e025
commit 6a282fe7fa
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 2 additions and 2 deletions

View File

@ -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