Added comment about GLOBAL_CACHE and how it is later renamed
This commit is contained in:
parent
87d6284d67
commit
2fa8a641a0
@ -249,6 +249,10 @@ exists() {
|
|||||||
|
|
||||||
if [ -e "${filename}" ] && ! elementIn "${filename}" "${GLOBAL_CACHE[@]}"; then
|
if [ -e "${filename}" ] && ! elementIn "${filename}" "${GLOBAL_CACHE[@]}"; then
|
||||||
# Cache $script
|
# 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}"
|
GLOBAL_CACHE["${#GLOBAL_CACHE[@]}"]="${filename}"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user