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