Turns out we only supported bash 4.3, this commit swaps typeset for eval

master
Dylan 10 years ago
parent 928bbf0760
commit db26756ea7
  1. 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

Loading…
Cancel
Save