fіx argument passing to php file

passing arguments with whitespace didn't work
thanks to Jan-Benedict for providing this patch
This commit is contained in:
Uwe Steinmann 2016-01-31 11:20:11 +01:00
parent 97b19c3e00
commit 2302546286
4 changed files with 28 additions and 20 deletions

View File

@ -1,6 +1,8 @@
#!/bin/sh
if [ -z ${SEEDDMS_HOME+x} ]; then
echo "Please set SEEDDMS_HOME before running this script";
exit 1;
#!/usr/bin/env bash
if [ -z "${SEEDDMS_HOME}" ]; then
echo 'Please set $SEEDDMS_HOME before running this script'
exit 1
fi
php -f ${SEEDDMS_HOME}/utils/adddoc.php -- $*
exec php -f "${SEEDDMS_HOME}/utils/adddoc.php" -- "${@}"

View File

@ -1,6 +1,8 @@
#!/bin/sh
if [ -z ${SEEDDMS_HOME+x} ]; then
echo "Please set SEEDDMS_HOME before running this script";
exit 1;
#!/usr/bin/env bash
if [ -z "${SEEDDMS_HOME}" ]; then
echo 'Please set $SEEDDMS_HOME before running this script'
exit 1
fi
php -f ${SEEDDMS_HOME}/utils/createfolder.php -- $*
exec php -f "${SEEDDMS_HOME}/utils/createfolder.php" -- "${@}"

View File

@ -1,6 +1,8 @@
#!/bin/sh
if [ -z ${SEEDDMS_HOME+x} ]; then
echo "Please set SEEDDMS_HOME before running this script";
exit 1;
#!/usr/bin/env bash
if [ -z "${SEEDDMS_HOME}" ]; then
echo 'Please set $SEEDDMS_HOME before running this script'
exit 1
fi
php -f ${SEEDDMS_HOME}/utils/indexer.php -- $*
exec php -f "${SEEDDMS_HOME}/utils/indexer.php" -- "${@}"

View File

@ -1,6 +1,8 @@
#!/bin/sh
if [ -z ${SEEDDMS_HOME+x} ]; then
echo "Please set SEEDDMS_HOME before running this script";
exit 1;
#!/usr/bin/env bash
if [ -z "${SEEDDMS_HOME}" ]; then
echo 'Please set $SEEDDMS_HOME before running this script'
exit 1
fi
php -f ${SEEDDMS_HOME}/utils/xmldump -- $*
exec php -f "${SEEDDMS_HOME}/utils/xmldump" -- "${@}"