Skip to content
Snippets Groups Projects
Commit cd3dbd55 authored by Mario's avatar Mario
Browse files

WIP. minor improvement

parent 104f50f6
Branches
Tags
No related merge requests found
Pipeline #2425974 passed
......@@ -153,11 +153,14 @@ max_reps=$(jq -j '.common_config.max_trials_in_case_of_failure' $SCANCFG)
START_YR=$(date +%s.%N)
reps=0; retval=-1
while [ retval != 0 ]; do
while [ true ]; do
((reps++))
$comm # call Yarr
retval=$?
if [ $retval -eq 0 ]; then
break
fi
if [ $retval -ne 0 ] && [ $reps -ge $max_reps ]; then
echo "[ warn ][sl] After $max_reps attempts, couldn't succesfully finish $scanName."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment