From 4dcff78a7431fa39cf8368bc7e831ada904cd494 Mon Sep 17 00:00:00 2001 From: Chi Bastian Barnett Date: Wed, 28 Mar 2018 16:28:55 -0700 Subject: [PATCH] sd gets set unhelpfully in some circumstances --- openvpn.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openvpn.sh b/openvpn.sh index 3ae1682..f535410 100755 --- a/openvpn.sh +++ b/openvpn.sh @@ -3,6 +3,9 @@ # Change to script directory sd=`dirname $0` cd $sd +# if you ran the script from its own directory you actually just got '.' +# so capture the abs path to wd now +sd=`pwd` # Make sure config file exists if [ ! -f ./config.sh ]; then