diff --git a/vpnsetup.sh b/vpnsetup.sh index fff9acd..3b3393b 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -172,7 +172,7 @@ check_creds() { check_dns() { if { [ -n "$VPN_DNS_SRV1" ] && ! check_ip "$VPN_DNS_SRV1"; } \ - || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; } then + || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; }; then exiterr "The DNS server specified is invalid." fi } diff --git a/vpnsetup_alpine.sh b/vpnsetup_alpine.sh index f4f7c61..3c0b525 100755 --- a/vpnsetup_alpine.sh +++ b/vpnsetup_alpine.sh @@ -125,7 +125,7 @@ check_creds() { check_dns() { if { [ -n "$VPN_DNS_SRV1" ] && ! check_ip "$VPN_DNS_SRV1"; } \ - || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; } then + || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; }; then exiterr "The DNS server specified is invalid." fi } diff --git a/vpnsetup_amzn.sh b/vpnsetup_amzn.sh index 1ba9532..4cc94be 100755 --- a/vpnsetup_amzn.sh +++ b/vpnsetup_amzn.sh @@ -107,7 +107,7 @@ check_creds() { check_dns() { if { [ -n "$VPN_DNS_SRV1" ] && ! check_ip "$VPN_DNS_SRV1"; } \ - || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; } then + || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; }; then exiterr "The DNS server specified is invalid." fi } diff --git a/vpnsetup_centos.sh b/vpnsetup_centos.sh index e328626..37c2a12 100755 --- a/vpnsetup_centos.sh +++ b/vpnsetup_centos.sh @@ -127,7 +127,7 @@ check_creds() { check_dns() { if { [ -n "$VPN_DNS_SRV1" ] && ! check_ip "$VPN_DNS_SRV1"; } \ - || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; } then + || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; }; then exiterr "The DNS server specified is invalid." fi } diff --git a/vpnsetup_ubuntu.sh b/vpnsetup_ubuntu.sh index bc2f480..4566b75 100755 --- a/vpnsetup_ubuntu.sh +++ b/vpnsetup_ubuntu.sh @@ -133,7 +133,7 @@ check_creds() { check_dns() { if { [ -n "$VPN_DNS_SRV1" ] && ! check_ip "$VPN_DNS_SRV1"; } \ - || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; } then + || { [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; }; then exiterr "The DNS server specified is invalid." fi }