mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-28 15:54:48 +00:00
fix ufw completion
- fix the case when empty string is passed
This commit is contained in:
@@ -42,7 +42,7 @@ _ufw_logging() {
|
|||||||
local params additional second
|
local params additional second
|
||||||
second=$words[2]
|
second=$words[2]
|
||||||
|
|
||||||
if [ ! -z $second ]; then
|
if [[ ! -z "$second" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ _ufw_delete() {
|
|||||||
|
|
||||||
second=$words[2]
|
second=$words[2]
|
||||||
|
|
||||||
if [ ! -z $second ]; then
|
if [[ ! -z "$second" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user