diff --git a/cleanAndRunEccs2.sh b/cleanAndRunEccs2.sh index bff17b6bcc153b6e08bedab6ee3f960b0519e891..58b981c7b8eb572e425b9d7910565eecb3e7820f 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