Commit 300bffe5 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix for checking existing logs in the right folder

parent 4c8f6eb7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@
LOGFILE=openapi-validation.log
DOCKER_IMAGE=etsiforge/swagger-cli:4.0.3

echo -e "\n------ Switching to $1 folder --------"
cd $1

echo "------ Checking for previous logs ------"
if [ -f "$LOGFILE" ] ; then
    echo "Found previous log. Removing it"
@@ -36,9 +39,6 @@ function validate {
    fi
}

echo -e "\n------ Switching to $1 folder --------"
cd $1

echo -e "\n------ Validating all YAML files (may takes several minutes) ------"
# If there are no YAML file, simply exit
ls | grep -q yaml