From a212a2e45feb4bacd6583fc6d8de4cf856962037 Mon Sep 17 00:00:00 2001 From: Marco Malavolti <marco.malavolti@garr.it> Date: Wed, 2 Dec 2020 17:29:07 +0100 Subject: [PATCH] Update cleanAndRunEccs2.sh --- cleanAndRunEccs2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cleanAndRunEccs2.sh b/cleanAndRunEccs2.sh index bff17b6..58b981c 100755 --- a/cleanAndRunEccs2.sh +++ b/cleanAndRunEccs2.sh @@ -15,7 +15,6 @@ $BASEDIR/eccs2/runEccs2.py # Run Failed Command again bash $BASEDIR/eccs2/logs/failed-cmd.sh -# Remove "failed-cmd" and "stdout*" "stderr*" if empty date=$(date '+%Y-%m-%d') file="$BASEDIR/eccs2/logs/failed-cmd.sh" prefix="$BASEDIR/eccs2/eccs2.py '" @@ -23,6 +22,8 @@ suffix="'" eccs2output="$BASEDIR/eccs2/output/eccs2_$date.log" declare -a eccs2cmdToRemoveArray +# If the ECCS2 output contains the result of a failed command (failed-cmd.sh), +# than remove the failed command from the failed-cmd.sh file if [ -s $eccsoutput ]; then if [ -s $file ]; then while IFS= read -r line @@ -51,7 +52,6 @@ if [ -s $eccsoutput ]; then done <"$file" - # Remove IdP command that had success from "failed-cmd.sh" for idpToRemove in ${eccs2cmdToRemoveArray[@]} do -- GitLab