Преглед изворни кода

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

rl1987 пре 5 година
родитељ
комит
1fc8bbff9c
1 измењених фајлова са 2 додато и 2 уклоњено
  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