We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ce0a2a commit 22726dfCopy full SHA for 22726df
tools/sim_repeater.sh
@@ -18,7 +18,7 @@ for (( i=1; i<="${SIM_TRIES}"; i++ )); do
18
"$@" 2>&1 | tee "${TEMP_LOGS}/${i}"
19
RESULT=$?
20
21
- if [ -n "${SIM_RETRY_CONDITION}" ] && [ $RESULT != 0 ]; then
+ if [[ -n "${SIM_RETRY_CONDITION}" && ( $RESULT != 0 || $SIM_RETRY_IGNORE_EXIT_CODE = 1 ) ]]; then
22
if grep -E "${SIM_RETRY_CONDITION}" "${TEMP_LOGS}/${i}" &> /dev/null; then
23
echo "Retry condition encountered. Retrying in ${RETRY_COOLDOWN}s"
24
echo ''
0 commit comments