Using bashisms [[ ]] and ${:-}

This commit is contained in:
Sean Pearce
2019-01-04 11:24:22 -08:00
parent 7c1aaa97f8
commit 4f520985d7

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env bash
# Display PHP error's or not
if [[ "$ERRORS" != "1" ]] ; then
sed -i -e "s/error_reporting =.*=/error_reporting = E_ALL/g" /usr/etc/php.ini