mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #824 more generic code to get current script directory (working both on Linux and MacOSX)
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user