(cp 9e29db0) fixes #824 more generic code to get current script directory (working both on Linux and MacOSX)

This commit is contained in:
plegall
2017-12-18 14:30:10 +01:00
parent 33a03e9afb
commit 53d62e0c14

View File

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