mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-26 06:47:54 +01:00
build-system: change from glob to regex matching for system list
This commit is contained in:
1 parent
b19c038f47
commit
4dcaded201
1 file changed
+2
-2
@@ -1235,8 +1235,8 @@ build_modules_yaml_v1(){
|
|||||||
|
|
||||||
local -- system
|
local -- system
|
||||||
for system in "${systems[@]}"; do
|
for system in "${systems[@]}"; do
|
||||||
[[ "${opt_system}" == ${system} ]] && return 0
|
[[ "${opt_system}" =~ ${system} ]] && return 0
|
||||||
[[ "${HOSTNAME}" == ${system} ]] && return 0
|
[[ "${HOSTNAME}" =~ ${system} ]] && return 0
|
||||||
done
|
done
|
||||||
std::info "Skipping variant '${module_version}', neither OS nor hostname match:"
|
std::info "Skipping variant '${module_version}', neither OS nor hostname match:"
|
||||||
std::info " This system: ${opt_system}; hostname: ${HOSTNAME}"
|
std::info " This system: ${opt_system}; hostname: ${HOSTNAME}"
|
||||||
|
|||||||
Reference in new issue
Block a user