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LdGwG6jLgd7bInrqcUp/wbJEFij8IUXklV/iK
 anr5IyOsVqEeAd5wDNLTtY4EJY2ihubAneuF8uv0eeC1tWRWS+GHZKikg+tXUOqb
 I5SWfFkGDJj+KC96GJpRzFBwYfCeqb4TCjspxvUhxYj0C8gQ2wMEMOL7K6SCCNBV
 DVCaifY38XVYwpwt5/2D9XyKGKA+iFa99o+fgXfpCmNJu5rPSOAVItPNDiDaeTB2
 31G1Wf9ndOHC4QPb71CEOq4iSP/c1FYRjFFuKLWvsX1XlcVoIbsXdaRKJDDdkjxb
 ru58uCvYo+wNKZX9VzR6g6bVzObnGdl2j6ea8v/fSjaSAvry+1Ob1ZC9+Qt+DyZJ
 Rcj6VvAA/645qJxjQ3nC/siADboN+hQbDzSL12hVjHbfXDHrFsBQQZH0Em26sqcw
 RR85sMwmvPP2nccD3AhLbq800J0zMUhWqh1vcuz1+aOD//vn64KjONSeczuyQObG
 tbkGIp1hU6FiYWWmL2K3
 =cRXq
 -----END PGP SIGNATURE-----

Merge tag 'jm_3640af68'

Tag for commit 3640af684f

# gpg: Signature made Tue 04 Aug 2015 06:17:34 AM CEST using RSA key ID 5A4C6DAD
# gpg: Good signature from "Jason Mehring (Qubes OS Signing Key) <nrgaway@gmail.com>"
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: E0E3 2283 FDCA C1A5 1007  8F27 1BB9 B1FB 5A4C 6DAD

* tag 'jm_3640af68':
  functions.sh: fix GLOBAL_CACHE error whay array does not yet exist
This commit is contained in:
Marek Marczykowski-Górecki 2015-08-05 01:16:48 +02:00
commit 645a903995

View File

@ -167,7 +167,7 @@ error() {
setArrayAsGlobal() {
local array="$1"
local export_as="$2"
local code=$(declare -p "$array")
local code=$(declare -p "$array" 2> /dev/null || true)
local replaced="${code/$array/$export_as}"
eval ${replaced/declare -/declare -g}
}
@ -407,7 +407,7 @@ getFileLocations() {
local function="templateFile"
unset GLOBAL_CACHE
declare -A -g GLOBAL_CACHE
declare -gA GLOBAL_CACHE
callTemplateFunction "${filename}" "${suffix}" "${function}"
setArrayAsGlobal GLOBAL_CACHE $return_global_var