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,9 +31,11 @@ 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