Merge branch '343-build-system-use-regex-for-the-system-check' into 'master'

Resolve "build-system: use regex for the system  check"

Closes #343

See merge request Pmodules/src!331

(cherry picked from commit 5ccf61065e)

4dcaded2 build-system: change from glob to regex matching for system list

Co-authored-by: gsell <achim.gsell@psi.ch>
This commit is contained in:
2024-08-29 15:15:00 +02:00
parent 76e57344e1
commit 15d6aceaa4
+2 -2
View File
@@ -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}"