mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-11 08:43:57 +01:00
Pmodules/modbuild
- don't search for a variants file while bootstrapping
This commit is contained in:
1 parent
9a68b2b060
commit
43171df80f
1 file changed
+8
-8
+8
-8
@@ -315,15 +315,15 @@ done
|
||||
(( ok == 0 )) || std::die 3 "Oops: required BASH library '${libpbuild}' not found"
|
||||
|
||||
|
||||
if [[ -n "${variants_file}" ]]; then
|
||||
if [[ ! -r "${variants_file}" ]]; then
|
||||
std::die 1 "${variants_file}: variants file does not exist or is not readable!"
|
||||
fi
|
||||
else
|
||||
search_variants_file || std::die 2 "No usable variants file found!"
|
||||
fi
|
||||
|
||||
if [[ ${bootstrap} == no ]]; then
|
||||
if [[ -n "${variants_file}" ]]; then
|
||||
if [[ ! -r "${variants_file}" ]]; then
|
||||
std::die 1 "${variants_file}: variants file does not exist or is not readable!"
|
||||
fi
|
||||
else
|
||||
search_variants_file || std::die 2 "No usable variants file found!"
|
||||
fi
|
||||
|
||||
# initialize module environment
|
||||
source "${PMODULES_ROOT}/${PMODULES_CONFIG_DIR}/profile.bash"
|
||||
MODULECMD="${PMODULES_HOME}/bin/modulecmd"
|
||||
|
||||
Reference in new issue
Block a user