Skip to content

Commit edd4d58

Browse files
committed
Fix bug with v-add-sys-ip
1 parent 25f918a commit edd4d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-sys-ip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if [ -z "$sys_ip_check" ]; then
8080
# Improve check netplan
8181
if dpkg-query -W -f'${Status}' "netplan*" 2>/dev/null | grep -q "ok installed"; then
8282
result=$(cat /etc/netplan/*.yaml 2>/dev/null | grep $(hostname -I | cut -d' ' -f1));
83-
if [ ! -z $result ]; then
83+
if [ ! -z "$result" ]; then
8484
netplan=1
8585
else
8686
netplan=0

0 commit comments

Comments
 (0)