mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-30 19:29:38 +02:00
modbuild: exit if no suitable variants file could be found
This commit is contained 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[@]}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user