aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Carlson <ace@debian-eeepc>2018-06-18 15:47:35 -0400
committerAndy Carlson <ace@debian-eeepc>2018-06-18 15:47:35 -0400
commit879bbfaf314e335502e773b889932fdcdae7d34d (patch)
tree02f57e2fe215ec68f48f0ffe130fb53274a162e3
parent7df84c5725b9ca223bf7c230e5c5ce3483686f75 (diff)
fixed php5
-rwxr-xr-xchecks/php5check.sh.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/checks/php5check.sh.m4 b/checks/php5check.sh.m4
index 57d81af..65339a8 100755
--- a/checks/php5check.sh.m4
+++ b/checks/php5check.sh.m4
@@ -25,7 +25,7 @@ else
else
php5versiondata > /tmp/php5ver
diff /tmp/php5ver $CONFDIR/php5ver
- if [ $? -eq 1 ] && [ $(grep '^[ \t]*$' /tmp/php5ver | wc -l) -eq 0 ]; then
+ if [ $? -eq 1 ] && [ $(grep '^[0-9\.]\+$' /tmp/php5ver | wc -l) -eq 1 ]; then
mv /tmp/php5ver $CONFDIR/php5ver
echo "{\"value1\":\"$(cat $CONFDIR/php5ver)\"}" |curl -X POST -d ''"$(cat -)"'' -H "Content-type: application/json" https://maker.ifttt.com/trigger/{php5version}/with/key/$IFTTTKEY
else