aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU-AD\carlsoan <carlsoan@gophersjos7275.ad.uc.edu>2018-06-11 10:01:14 -0400
committerU-AD\carlsoan <carlsoan@gophersjos7275.ad.uc.edu>2018-06-11 10:01:14 -0400
commit8f2dd9380368b3c8c7cca0bf96669165c8f95fc0 (patch)
tree08eb8aaadac353099ebc1d47b4f5afa4431bf059
parentfae0ad6c10a80413ecf11c674adad6209d5748d6 (diff)
fixed debversioncheck
-rwxr-xr-xchecks/debversion.sh.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/checks/debversion.sh.m4 b/checks/debversion.sh.m4
index 1e4bcae..82a03d0 100755
--- a/checks/debversion.sh.m4
+++ b/checks/debversion.sh.m4
@@ -25,7 +25,7 @@ else
else
debversiondata > /tmp/debversion
diff /tmp/debversion $CONFDIR/debversion
- if [ $? -eq 1 ] && [ $(grep '^[ \t]*$' /tmp/debversion | wc -l) -eq 0 ]; then
+ if [ $? -eq 1 ] && [ $(grep '^[0-9\.]\+$' /tmp/debversion | wc -l) -eq 1 ]; then
mv /tmp/debversion $CONFDIR/debversion
echo "{\"value1\":\"$(cat $CONFDIR/debversion)\"}" |curl -X POST -d ''"$(cat -)"'' -H "Content-type: application/json" https://maker.ifttt.com/trigger/{debversion}/with/key/$IFTTTKEY
else