From 6591db3d5bd6a012347ab86df12360e411b4abc1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 31 Jan 2019 23:43:33 -0600 Subject: [PATCH] uopdate --- test.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test.sh b/test.sh index 6571369..83b025c 100755 --- a/test.sh +++ b/test.sh @@ -20,15 +20,15 @@ fi function myfunc() { - local -n myresult="$1" || return 1 - myresult[0]="a" - myresult[1]="b" + local -n __resultvar="$1" || return 1 + __resultvar[0]="a" + __resultvar[1]="b" echo 'yes'; if [ -f /etc/debian_version ] ; then - myresult[2]="c" - myresult[3]="d" - myresult[4]="e" -fi + __resultvar[2]="c" + __resultvar[3]="d" + __resultvar[4]="e" + fi echo "ok" }