From 9e29db04818273086c7fabf4ab8c6bc44d74e6d3 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 18 Dec 2017 14:29:32 +0100 Subject: [PATCH] fixes #824 more generic code to get current script directory (working both on Linux and MacOSX) --- tools/pwg_rel_create.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/pwg_rel_create.sh b/tools/pwg_rel_create.sh index c3cf7d0ce..0220534ae 100755 --- a/tools/pwg_rel_create.sh +++ b/tools/pwg_rel_create.sh @@ -1,6 +1,7 @@ #!/bin/bash -scriptdir=$(dirname $(readlink -e $0)) +script_abspath=$(perl -e 'use Cwd "abs_path"; print abs_path(@ARGV[0])' -- "$0") +scriptdir=$(dirname $script_abspath) # +--------------------------------------------------------------------------+ # | pwg_rel_create.sh |