Commit 49269a88 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Printing result of each file validation

parent 4d1bffcf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ if [ -f "$LOGFILE" ] ; then
fi

if [ -x "$(command -v docker)" ] ; then
    RUN_IN_DOCKER=0
    RUN_IN_DOCKER=1
    echo "Using dockerized validator ($DOCKER_IMAGE)"
    docker pull "$DOCKER_IMAGE"
	#docker pull -q "$DOCKER_IMAGE" --> Pull quietly only from Ubuntu 20.04
@@ -53,6 +53,7 @@ ERR=""
for i in *.yaml ;  do
    echo -e "----  Validating $i ...  "    
    MSG=$(validate "$i" 2>&1)
	echo "$MSG"
    res=$?
    if [ ! $res == 0 ] ; then 
        ERR="$ERR$MSG\n"