From 2bb938416c2801c406828d021db178cf6becc462 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sat, 29 Jan 2022 12:35:51 -0600 Subject: [PATCH] Cleanup --- vpnsetup.sh | 2 +- vpnsetup_alpine.sh | 2 +- vpnsetup_amzn.sh | 2 +- vpnsetup_centos.sh | 2 +- vpnsetup_ubuntu.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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 }