From 15d6aceaa46071200002fac5e8cd2852fa8cf2bb Mon Sep 17 00:00:00 2001 From: gsell Date: Thu, 29 Aug 2024 15:15:00 +0200 Subject: [PATCH] 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 5ccf61065e88f510274141056baa76a15282d18f) 4dcaded2 build-system: change from glob to regex matching for system list Co-authored-by: gsell --- Pmodules/modbuild.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index 436252b..2a49a62 100644 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.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}"