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:29:32 +01:00
parent 1da9d6afc4
commit 9e29db0481

View file

@ -1,6 +1,7 @@
#!/bin/bash #!/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 | # | pwg_rel_create.sh |