mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
fixes #824 more generic code to get current script directory (working both on Linux and MacOSX)
This commit is contained in:
parent
1da9d6afc4
commit
9e29db0481
1 changed files with 2 additions and 1 deletions
|
@ -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 |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue