Skip to content

Commit

Permalink
php-cgi should be called with --version
Browse files Browse the repository at this point in the history
  • Loading branch information
JVerstry committed Jul 23, 2015
1 parent dab4350 commit 3efb278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/make_php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function install_php() {

function check_php() {
if [[ -x $OPENSHIFT_RUNTIME_DIR/bin/php-cgi ]] ; then
if [[ "`$OPENSHIFT_RUNTIME_DIR/bin/php-cgi`" =~ "${DIST_PHP_VER}" ]] ; then
if [[ "`$OPENSHIFT_RUNTIME_DIR/bin/php-cgi --version`" =~ "${DIST_PHP_VER}" ]] ; then
return 0
fi
fi
Expand Down

0 comments on commit 3efb278

Please sign in to comment.