diff options
| author | Luke Bratch <luke@bratch.co.uk> | 2023-07-11 14:34:53 +0100 | 
|---|---|---|
| committer | Luke Bratch <luke@bratch.co.uk> | 2023-07-11 14:34:53 +0100 | 
| commit | cb7c34e5614be8f0220e6bb8bea5eedb22b81ab5 (patch) | |
| tree | 575b035bc5614680d1a85001713fe8618257b06e | |
| parent | 24c56616bfae82a08ccad62e256a84952bd47ead (diff) | |
| -rwxr-xr-x | certexpiry.sh | 4 | 
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) | 
