Fix Syntax

This commit is contained in:
Mike Reeves
2021-02-24 15:57:18 -05:00
parent 5949119cb5
commit 8f3ba7633c

View File

@@ -751,7 +751,7 @@ check_sos_appliance() {
}
compare_main_nic_ip() {
if [[ "$MNIC" =~ tun || "$MNIC" =~ wg || "$MNIC" =~ vpn ]]; then
if [[ "$MNIC" =~ ^('tun'|'vpn'|'wg')$ ]]; then
echo "This is a VPN"
else
if [[ "$MAINIP" != "$MNIC_IP" ]]; then