Added comment about GLOBAL_CACHE and how it is later renamed

pull/1/head jm_2fa8a641
Jason Mehring 9 years ago
parent 87d6284d67
commit 2fa8a641a0
No known key found for this signature in database
GPG Key ID: 1BB9B1FB5A4C6DAD

@ -249,6 +249,10 @@ exists() {
if [ -e "${filename}" ] && ! elementIn "${filename}" "${GLOBAL_CACHE[@]}"; then
# Cache $script
#
# GLOBAL_CACHE is declared in the `getFileLocations` function and is later
# renamed to a name passed into the function as $1 to allow scripts using
# the function to have access to the array
GLOBAL_CACHE["${#GLOBAL_CACHE[@]}"]="${filename}"
return 0
fi

Loading…
Cancel
Save