From 22c30aced7b5555e36acf81e88b5a00a7794e105 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 4 Jul 2022 19:08:10 +0200 Subject: [PATCH] modbuild: handling of empty variant array fixed an entry /: without further information is legal and must be handled properly. --- Pmodules/modbuild.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index 98570c9..b80afb1 100755 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -568,6 +568,7 @@ build_modules_yaml(){ for v in "${versions[@]}"; do local -i n_variants yaml_get_num_variants n_variants "${fname}" "${v}" + (( n_variants == 0 )) && (( n_variants = 1 )) local -i i local -a deps=() local relstage