From 1ec957d3be2becb7084892e5f1913f436685e818 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Wed, 20 Jul 2016 13:10:58 -0500 Subject: [PATCH] Minor clean up --- extras/vpnupgrade.sh | 6 +++--- extras/vpnupgrade_centos.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/extras/vpnupgrade.sh b/extras/vpnupgrade.sh index bbe5f0c..f014161 100644 --- a/extras/vpnupgrade.sh +++ b/extras/vpnupgrade.sh @@ -10,10 +10,10 @@ # Attribution required: please include my name in any derivative and let me # know how you have improved it! -# Check for the latest version at https://libreswan.org and update as necessary +# Check https://libreswan.org for the latest version swan_ver=3.17 -### Do not edit below this line +### Do not edit below this line ### export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" @@ -42,7 +42,7 @@ if [ "$?" != "0" ]; then exiterr "This script requires Libreswan already installed." fi -/usr/local/sbin/ipsec --version 2>/dev/null | grep -qs "Libreswan $swan_ver" +/usr/local/sbin/ipsec --version 2>/dev/null | grep -qs "$swan_ver" if [ "$?" = "0" ]; then echo "You already have Libreswan version $swan_ver installed! " echo "If you continue, the same version will be re-installed." diff --git a/extras/vpnupgrade_centos.sh b/extras/vpnupgrade_centos.sh index 412d4f3..4ba6337 100644 --- a/extras/vpnupgrade_centos.sh +++ b/extras/vpnupgrade_centos.sh @@ -10,10 +10,10 @@ # Attribution required: please include my name in any derivative and let me # know how you have improved it! -# Check for the latest version at https://libreswan.org and update as necessary +# Check https://libreswan.org for the latest version swan_ver=3.17 -### Do not edit below this line +### Do not edit below this line ### export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" @@ -45,7 +45,7 @@ if [ "$?" != "0" ]; then exiterr "This script requires Libreswan already installed." fi -/usr/local/sbin/ipsec --version 2>/dev/null | grep -qs "Libreswan $swan_ver" +/usr/local/sbin/ipsec --version 2>/dev/null | grep -qs "$swan_ver" if [ "$?" = "0" ]; then echo "You already have Libreswan version $swan_ver installed! " echo "If you continue, the same version will be re-installed."