fix ufw completion
- fix the case when empty string is passed
This commit is contained in:
parent
c7f779e025
commit
6a282fe7fa
4
src/_ufw
4
src/_ufw
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue