From 2fa8a641a099b52a581c3e38b2a943217c2ea1bb Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Thu, 9 Apr 2015 21:28:14 -0400 Subject: [PATCH] Added comment about GLOBAL_CACHE and how it is later renamed --- functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions.sh b/functions.sh index 2e75ef5..acc819f 100755 --- a/functions.sh +++ b/functions.sh @@ -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