mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-01 19:50:49 +02:00
modbuild: redirection fixed in get_yaml_file_fmt()
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user