modulecmd: store field-names in YAML module config in lowercase

This commit is contained in:
2023-11-17 16:06:57 +01:00
parent 964a22be60
commit be7d8517ac
+10 -1
View File
@@ -329,7 +329,7 @@ get_module_config(){
;;
esac
if [[ "${value}" != 'null' ]]; then
ref_cfg[${key}]="${value}"
ref_cfg[${key,,}]="${value}"
fi
done
return 0
@@ -3392,6 +3392,10 @@ case "$1" in
esac
shift
debug(){
:
}
# parse agruments till and including the sub-command
declare -a opts=()
while (( $# > 0 )); do
@@ -3403,6 +3407,11 @@ while (( $# > 0 )); do
print_help 'version'
;;
--debug )
debug(){
echo "DEBUG: " "$@" 1>&2
}
;;
--verbose )
set -x
;;
'' )