mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 18:13:08 +02:00
build-system: bugfix: handle empty variants
This commit is contained in:
@@ -818,6 +818,11 @@ build_modules_yaml_v1(){
|
|||||||
|
|
||||||
local -- type_of_key=''
|
local -- type_of_key=''
|
||||||
type_of_key=$( ${yq} -e ".variants | type" 2>/dev/null <<<"${yaml_input}")
|
type_of_key=$( ${yq} -e ".variants | type" 2>/dev/null <<<"${yaml_input}")
|
||||||
|
if [[ "${type_of_key}" == '!!null' ]]; then
|
||||||
|
result=''
|
||||||
|
n=0
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
if [[ "${type_of_key}" != '!!seq' ]]; then
|
if [[ "${type_of_key}" != '!!seq' ]]; then
|
||||||
die_invalid_variants_block "${name}" "${version}" \
|
die_invalid_variants_block "${name}" "${version}" \
|
||||||
"${type_of_key}"
|
"${type_of_key}"
|
||||||
|
|||||||
Reference in New Issue
Block a user