From 876afc6cd073b39dcbcfcf45ac0bc57d6a45b7a7 Mon Sep 17 00:00:00 2001
From: Marco Malavolti <marco.malavolti@gmail.com>
Date: Thu, 30 Jul 2020 12:31:35 +0200
Subject: [PATCH] Fixed output of cleanAndRunEccs2.sh script

---
 cleanAndRunEccs2.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cleanAndRunEccs2.sh b/cleanAndRunEccs2.sh
index 29db4bb..bff17b6 100755
--- a/cleanAndRunEccs2.sh
+++ b/cleanAndRunEccs2.sh
@@ -25,7 +25,6 @@ declare -a eccs2cmdToRemoveArray
 
 if [ -s $eccsoutput ]; then
    if [ -s $file ]; then
-
       while IFS= read -r line
       do
          string=$line
@@ -64,6 +63,8 @@ if [ -s $eccsoutput ]; then
       else
          echo "$date - ECCS2 OK: All eduGAIN IdPs have been checked successfully"
       fi
+   else
+      echo "$date - ECCS2 OK: All eduGAIN IdPs have been checked successfully"
    fi
 else
    echo "$date - Something went wrong and the ECCS2 check has not been executed"
-- 
GitLab