Loading common-openapi/cli-validate-openapis-mec.sh +3 −5 Original line number Diff line number Diff line Loading @@ -45,11 +45,9 @@ function validate { } echo -e "\n------ Validating all YAML files (may takes several minutes) ------" # If there are no YAML file, simply exit ls | grep -q yaml found_yaml=$? if [ ! $found_yaml ] ; then echo "-- No YAML files." # If there are no YAML files nor JSON files, simply exit if ! ls | grep -Eq '\.ya?ml$|\.json$'; then echo "-- No YAML or JSON files." exit 0 fi Loading Loading
common-openapi/cli-validate-openapis-mec.sh +3 −5 Original line number Diff line number Diff line Loading @@ -45,11 +45,9 @@ function validate { } echo -e "\n------ Validating all YAML files (may takes several minutes) ------" # If there are no YAML file, simply exit ls | grep -q yaml found_yaml=$? if [ ! $found_yaml ] ; then echo "-- No YAML files." # If there are no YAML files nor JSON files, simply exit if ! ls | grep -Eq '\.ya?ml$|\.json$'; then echo "-- No YAML or JSON files." exit 0 fi Loading