From cf459b84bd362107976c2f92aa47ea89be8ab70a Mon Sep 17 00:00:00 2001 From: "T. R. Bernstein" <137705289+trbernstein@users.noreply.github.com> Date: Mon, 1 Jul 2024 00:45:08 +0200 Subject: [PATCH] Don't quote associative array expansion --- bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 7f2a0a6..f142152 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -95,8 +95,8 @@ function printFailedWithError() { function defineColors() { local -A colorCodes=(red "`tput setaf 9`" green "`tput setaf 10`" reset "`tput sgr0`") - [ -t 1 ] && colors=("${(kv)colorCodes[@]}") - [ -t 2 ] && errColors=("${(kv)colorCodes[@]}") + [ -t 1 ] && colors=( ${(kv)colorCodes} ) + [ -t 2 ] && errColors=( ${(kv)colorCodes} ) } function ensureRepo() {