Don't quote associative array expansion
This commit is contained in:
committed by
T. R. Bernstein
parent
703c3498b8
commit
cf459b84bd
@@ -95,8 +95,8 @@ function printFailedWithError() {
|
|||||||
|
|
||||||
function defineColors() {
|
function defineColors() {
|
||||||
local -A colorCodes=(red "`tput setaf 9`" green "`tput setaf 10`" reset "`tput sgr0`")
|
local -A colorCodes=(red "`tput setaf 9`" green "`tput setaf 10`" reset "`tput sgr0`")
|
||||||
[ -t 1 ] && colors=("${(kv)colorCodes[@]}")
|
[ -t 1 ] && colors=( ${(kv)colorCodes} )
|
||||||
[ -t 2 ] && errColors=("${(kv)colorCodes[@]}")
|
[ -t 2 ] && errColors=( ${(kv)colorCodes} )
|
||||||
}
|
}
|
||||||
|
|
||||||
function ensureRepo() {
|
function ensureRepo() {
|
||||||
|
|||||||
Reference in New Issue
Block a user