Added comment about GLOBAL_CACHE and how it is later renamed

This commit is contained in:
Jason Mehring 2015-04-09 21:28:14 -04:00
parent 87d6284d67
commit 2fa8a641a0
No known key found for this signature in database
GPG Key ID: 1BB9B1FB5A4C6DAD

View File

@ -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