Commit ddb0a678 authored by Chris Croome's avatar Chris Croome

Error in Bash script fixed

parent 31fec96a
Pipeline #3499 canceled with stage
in 74 minutes and 42 seconds
......@@ -2,16 +2,16 @@
PHP_CONFIG=$(which php-config)
if [[ "${PHP_CONFIG}" == "" ]]; then;
if [[ "${PHP_CONFIG}" == "" ]]; then
echo "This script depends on php-config which is in the php-dev package"
exit 1
else
PHP_FD_SIZE=$(${PHP_CONFIG} --configure-options | sed 's/\s\+/\n/g' | grep enable-fd-setsize | sed 's/^--enable-fd-setsize=//' )
if [[ "${PHP_FD_SIZE}" != "" ]]; then;
if [[ "${PHP_FD_SIZE}" != "" ]]; then
echo "${PHP_FD_SIZE}"
exit 0
else
echo "There was a problem getting the PHP enable-fd-setsize configure variable"
echo "It appears that --enable-fd-setsize was not set when PHP was configured"
exit 1
fi
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment