From f198b605a3b755bf758ffcbfd23a1b9f315464f8 Mon Sep 17 00:00:00 2001 From: mxmehl Date: Fri, 28 Nov 2014 15:40:46 +0100 Subject: [PATCH] better detection of where the script actually resides --- ezmlm-export-subscribers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ezmlm-export-subscribers.sh b/ezmlm-export-subscribers.sh index cd19146..9c65cb9 100755 --- a/ezmlm-export-subscribers.sh +++ b/ezmlm-export-subscribers.sh @@ -1,6 +1,6 @@ #!/bin/bash -cd $(dirname $0) +cd "$(dirname "$(readlink -f "$0")")" # Test if config.cfg exists and set needed variables if [ ! -e config.cfg ]; then echo "Missing config.cfg file. Edit and rename config.cfg.sample"; exit 1; fi