Skip to content

Commit

Permalink
sd gets set unhelpfully in some circumstances
Browse files Browse the repository at this point in the history
  • Loading branch information
vellichor committed Mar 28, 2018
1 parent 350fc58 commit 4dcff78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4dcff78

Please sign in to comment.