summaryrefslogtreecommitdiff
path: root/certexpiry.sh
diff options
context:
space:
mode:
Diffstat (limited to 'certexpiry.sh')
-rwxr-xr-xcertexpiry.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/certexpiry.sh b/certexpiry.sh
index 468e4e0..7b02818 100755
--- a/certexpiry.sh
+++ b/certexpiry.sh
@@ -126,11 +126,11 @@ while read -r HOSTANDPORT ; do
# echo "DEBUG: EXPIRY6: $EXPIRY6."
# Number of seconds left (IPv4)
- DIFFERENCE4=$(("$EXPIRY4" - "$NOW"))
+ DIFFERENCE4=$((EXPIRY4 - NOW))
# echo "DEBUG: DIFFERENCE4: $DIFFERENCE4."
# Number of seconds left (IPv6)
- DIFFERENCE6=$(("$EXPIRY6" - "$NOW"))
+ DIFFERENCE6=$((EXPIRY6 - NOW))
# echo "DEBUG: DIFFERENCE6: $DIFFERENCE6."
# Warn if less than WARNSECONDS less (IPv4)