mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 17:08:11 +00:00
get SEEDMS_HOME from parent dir if not set
This commit is contained in:
parent
e10ce3dc4b
commit
85edac3734
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ -z "${SEEDDMS_HOME}" ]; then
|
if [ -z "${SEEDDMS_HOME}" ]; then
|
||||||
echo 'Please set $SEEDDMS_HOME before running this script'
|
parentdir=$(dirname "$0")
|
||||||
exit 1
|
export SEEDDMS_HOME=$(dirname "$parentdir")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec php -f "${SEEDDMS_HOME}/utils/xmldump.php" -- "${@}"
|
exec php -f "${SEEDDMS_HOME}/utils/xmldump.php" -- "${@}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user