Commit 48ae6a74 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix the check for no yaml or json files

parent a6dbb312
Loading
Loading
Loading
Loading
+3 −5
Original line number Original line Diff line number Diff line
@@ -45,11 +45,9 @@ function validate {
}
}


echo -e "\n------ Validating all YAML files (may takes several minutes) ------"
echo -e "\n------ Validating all YAML files (may takes several minutes) ------"
# If there are no YAML file, simply exit
# If there are no YAML files nor JSON files, simply exit
ls | grep -q yaml
if ! ls | grep -Eq '\.ya?ml$|\.json$'; then
found_yaml=$?
    echo "-- No YAML or JSON files."
if [ ! $found_yaml ] ; then
    echo "-- No YAML files."
    exit 0
    exit 0
fi
fi