From de95904aadaef1f410cf73d8f69385ae39ba69d8 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 4 Sep 2019 14:41:31 +0200 Subject: [PATCH] bugfix in finding variants files with two dots --- Pmodules/modbuild.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index 4fafb73..7ba6feb 100755 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -273,11 +273,12 @@ parse_args() { (( ${#versions[@]} > 0)) || std::die 1 "Module version not specified!" } +shopt -s nocaseglob find_variants_files(){ shopt -q nullglob || : local -i nullglob_set=$? shopt -s nullglob - local files=( "${BUILDBLOCK_DIR}"/*/variants.${opt_system} ) + local files=( "${BUILDBLOCK_DIR}"/*/variants\.${opt_system} ) files+=( "${BUILDBLOCK_DIR}"/*/variants.$(uname -s) ) local f for f in "${BUILDBLOCK_DIR}"/*/variants; do