From 7a6e6a19d6faf91ac30256dd31ba8708e40b4970 Mon Sep 17 00:00:00 2001 From: Erik Wilson Date: Tue, 2 Jul 2019 15:11:39 -0700 Subject: [PATCH] Clean up sonobuoy scripts --- scripts/sonobuoy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sonobuoy b/scripts/sonobuoy index f264ce9254..71c50cb16f 100755 --- a/scripts/sonobuoy +++ b/scripts/sonobuoy @@ -173,10 +173,10 @@ export -f sonobuoy-test sonobuoy-retry-test() { SECONDS=0 LIMIT=300 - for i in seq 1 3; do + for i in $(seq 1 3); do sonobuoy-test "${@}" && return echo "Failed sonobuoy try #${i}" - if [[ "$SECONDS" > "$LIMIT" ]]; then + if [ "$SECONDS" -gt "$LIMIT" ]; then echo "Stopping sonobuoy re-try after ${SECONDS} seconds (limit ${LIMIT}s)" break fi