@@ -80,7 +80,7 @@ if [ -z "$sys_ip_check" ]; then
# Improve check netplan
if dpkg-query -W -f'${Status}' "netplan*" 2>/dev/null | grep -q "ok installed"; then
result=$(cat /etc/netplan/*.yaml 2>/dev/null | grep $(hostname -I | cut -d' ' -f1));
- if [ ! -z $result ]; then
+ if [ ! -z "$result" ]; then
netplan=1
else
netplan=0