Skip to content
Snippets Groups Projects
Commit a212a2e4 authored by Marco Malavolti's avatar Marco Malavolti
Browse files

Update cleanAndRunEccs2.sh

parent 9f63d2e8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment