Commit 5032437c authored by gsell's avatar gsell
Browse files

Merge branch '69-bugfix-in-finding-variants-files' into 'master'

Resolve "bugfix in finding variants files"

Closes #69

See merge request !34
parents 155e50b5 de95904a
...@@ -273,11 +273,12 @@ parse_args() { ...@@ -273,11 +273,12 @@ parse_args() {
(( ${#versions[@]} > 0)) || std::die 1 "Module version not specified!" (( ${#versions[@]} > 0)) || std::die 1 "Module version not specified!"
} }
shopt -s nocaseglob
find_variants_files(){ find_variants_files(){
shopt -q nullglob || : shopt -q nullglob || :
local -i nullglob_set=$? local -i nullglob_set=$?
shopt -s nullglob shopt -s nullglob
local files=( "${BUILDBLOCK_DIR}"/*/variants.${opt_system} ) local files=( "${BUILDBLOCK_DIR}"/*/variants\.${opt_system} )
files+=( "${BUILDBLOCK_DIR}"/*/variants.$(uname -s) ) files+=( "${BUILDBLOCK_DIR}"/*/variants.$(uname -s) )
local f local f
for f in "${BUILDBLOCK_DIR}"/*/variants; do for f in "${BUILDBLOCK_DIR}"/*/variants; do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment