Browse Source

Fix two instances of SC2004 in nagios-check-tor-authority

rl1987 5 years ago
parent
commit
1fc8bbff9c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      contrib/dirauth-tools/nagios-check-tor-authority-cert

+ 2 - 2
contrib/dirauth-tools/nagios-check-tor-authority-cert

@@ -74,10 +74,10 @@ now=$(date +%s)
 if [ "$now" -ge "$expiryunix" ]; then
 	echo "CRITICAL: Certificate expired $expirydate (authority $identity)."
 	exit 2
-elif [ "$(( $now + 7*24*60*60 ))" -ge "$expiryunix" ]; then
+elif [ "$(( now + 7*24*60*60 ))" -ge "$expiryunix" ]; then
 	echo "CRITICAL: Certificate expires $expirydate (authority $identity)."
 	exit 2
-elif [ "$(( $now + 30*24*60*60 ))" -ge "$expiryunix" ]; then
+elif [ "$(( now + 30*24*60*60 ))" -ge "$expiryunix" ]; then
 	echo "WARNING: Certificate expires $expirydate (authority $identity)."
 	exit 1
 else