From db26756ea79ec4cb6e9812998d0a540fd3c9d694 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 21 Jan 2016 00:37:31 +1100 Subject: [PATCH] Turns out we only supported bash 4.3, this commit swaps typeset for eval --- fetch | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fetch b/fetch index 33291077..fc30f49e 100755 --- a/fetch +++ b/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