modbuild: exit if no suitable variants file could be found

This commit is contained in:
2022-11-03 14:28:50 +01:00
parent e998bfa09b
commit 1f7bebcef2
+3
View File
@@ -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[@]}"
}