mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 10:03:08 +02:00
Merge branch 'cherry-pick-5ccf6106' into '1.1.22'
Merge branch '343-build-system-use-regex-for-the-system-check' into 'master' See merge request Pmodules/src!338
This commit is contained in:
@@ -1235,8 +1235,8 @@ build_modules_yaml_v1(){
|
||||
|
||||
local -- system
|
||||
for system in "${systems[@]}"; do
|
||||
[[ "${opt_system}" == ${system} ]] && return 0
|
||||
[[ "${HOSTNAME}" == ${system} ]] && return 0
|
||||
[[ "${opt_system}" =~ ${system} ]] && return 0
|
||||
[[ "${HOSTNAME}" =~ ${system} ]] && return 0
|
||||
done
|
||||
std::info "Skipping variant '${module_version}', neither OS nor hostname match:"
|
||||
std::info " This system: ${opt_system}; hostname: ${HOSTNAME}"
|
||||
|
||||
Reference in New Issue
Block a user