bug referencing array value

pull/12/head
Tom Early 7 years ago
parent 06732d2bd0
commit 17ee395b10

@ -124,7 +124,7 @@ BaseStatus () {
ModuleStatus () {
local LoadState SubState
if [ -z ${3} ]; then
echo "Module ${2^^} - EMPTY"
ModuleState[$1]='EMPTY'
else
mcvar="n${3}"
if [[ ${!mcar} > 1 ]]; then
@ -143,7 +143,7 @@ ModuleStatus () {
else
ModuleState[$1]='not installed'
fi
echo "Module ${2^^} - ${3^^} is $ModuleState[$1]"
echo "Module ${2^^} - ${3^^} is ${ModuleState[$1]}"
fi
}

Loading…
Cancel
Save

Powered by TurnKey Linux.