Merge pull request #476 from TheSerapher/issue-470

Fixing option argument in run-crons for PHP binary
This commit is contained in:
Sebastian Grewe 2013-07-17 02:15:54 -07:00
commit 1adf8fc177

View File

@ -31,10 +31,12 @@ while getopts "hvp:" opt; do
echo "Usage: $0 [-v] [-p PHP_BINARY]";
exit 0
;;
v) VERBOSE=1
;;
p) PHP_BIN=$2; shift;
;;
v) VERBOSE=1 ;;
p) PHP_BIN=$OPTARG ;;
:)
echo "Option -$OPTARG requires an argument." >&2
exit 1
;;
esac
done