Fixing option argument in run-crons for PHP binary

Fixes #470
This commit is contained in:
Sebastian Grewe 2013-07-17 09:18:18 +02:00
parent b7ffbd0bfd
commit 39eb7f5714

View File

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