Commit 883e0170 authored by gsell's avatar gsell

Merge branch '94-building-dependencies-might-fail' into 'master'

Resolve "building dependencies might fail"

Closes #94

See merge request !59
parents 7be9e260 a6ab5f03
......@@ -306,7 +306,14 @@ pbuild::module_is_avail() {
[[ -n "${uvar}" ]] || uvar="__unused__"
local output=( $("${MODULECMD}" bash avail -a -m "$1" \
2>&1 1>/dev/null) )
[[ "${output[0]}" == "$1" ]] && std::upvar "${uvar}" "${output[1]}"
local i
for (( i = 0; i < ${#output[@]}; i += 2 )); do
if [[ "${output[$i]}" == "$1" ]]; then
std::upvar "${uvar}" "${output[i+1]}"
return 0
fi
done
return 1
}
pbuild::set_download_url() {
......
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