mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02: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
|
#!/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 |
|
||||||
|
|||||||
Reference in New Issue
Block a user