Turns out we only supported bash 4.3, this commit swaps typeset for eval
This commit is contained in:
parent
928bbf0760
commit
db26756ea7
9
fetch
9
fetch
|
@ -1319,14 +1319,13 @@ printinfo () {
|
|||
function=${info#*: }
|
||||
subtitle=${info%:*}
|
||||
|
||||
# Update the var
|
||||
case "$function" in
|
||||
"get"*)
|
||||
var=${function/get/}
|
||||
typeset -n output=$var
|
||||
|
||||
# Call the function
|
||||
[ -z "$output" ] && $function
|
||||
$function 2>/dev/null
|
||||
|
||||
# Update the variable
|
||||
eval output="\$${function/get/}"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Reference in New Issue