Minor clean up

This commit is contained in:
hwdsl2 2016-07-20 13:10:58 -05:00
parent 8acee7ec39
commit 1ec957d3be
2 changed files with 6 additions and 6 deletions

View File

@ -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."

View File

@ -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."