diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index 6aa9543..c202e03 100755 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -297,6 +297,9 @@ find_variants_files(){ || [[ -e "${f}.$(uname -s)" ]] \ || files+=( "$f" ) done + if (( ${#files[@]} == 0 )); then + std::die 2 "No suitable variants file found!" + fi (( nullglob_set == 1 )) && shopt -u nullglob std::upvar "$1" "${files[@]}" }