modbuild: redirection fixed in get_yaml_file_fmt()

This commit is contained in:
2023-11-17 15:56:29 +01:00
parent 05c96cd41b
commit 01d33c5641
+1 -1
View File
@@ -511,7 +511,7 @@ get_yaml_file_fmt(){
Get format version of configuration file. Print the version number
to stdout if it is valid.
"
${yq} -e '.' "$1" &>- || \
${yq} -e '.' "$1" &>/dev/null || \
std::die 3 "%s -- %s" \
"Error in YAML config file, please check with linter" \
"$1"