From 49cbe3166255cd352ebf3ff95959d829ab699373 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 31 Jan 2019 23:49:02 -0600 Subject: [PATCH] Update test.sh --- test.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/test.sh b/test.sh index 52f4a4a..39acca5 100755 --- a/test.sh +++ b/test.sh @@ -21,15 +21,11 @@ fi function myfunc() { local -n __resultvar="$1" || return 1 - __resultvar['qwe']="a" - __resultvar['qwdeqwd']="b" - echo 'yes'; - if [ -f /etc/debian_version ] ; then - __resultvar['wdqwd']="c" - __resultvar['fhntyn']="d" - __resultvar['ojno']="e" - fi - echo "ok" + __resultvar[]="a" + __resultvar[]="b" + __resultvar[]="c" + __resultvar[]="d" + __resultvar[]="e" } # call function that constructs the array with the array name