Skip to content

Commit 5321758

Browse files
author
MMA
committed
add double quotes in apicert conditions
1 parent fb6461f commit 5321758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check_kubernetes.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ mode_apicert() {
164164
echo "APICERT expires in $d days"
165165
if [ "$d" -gt "$WARN" ]; then
166166
echo "APICERT is OK"
167-
elif [ $d -le $WARN ] && [ $d -gt $CRIT ]; then
167+
elif [ "$d" -le "$WARN" ] && [ $d -gt "$CRIT" ]; then
168168
echo "APICERT is in WARN"
169169
EXITCODE=1
170-
elif [ $d -le $CRIT ]; then
170+
elif [ "$d" -le "$CRIT" ]; then
171171
echo "APICERT is in CRIT"
172172
EXITCODE=2
173173
fi

0 commit comments

Comments
 (0)