Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dminuoso

dminuoso/foo.sh Secret

Created June 12, 2019 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dminuoso/9e2c8be673e99990242bc2e1d7cbc0f1 to your computer and use it in GitHub Desktop.
Save dminuoso/9e2c8be673e99990242bc2e1d7cbc0f1 to your computer and use it in GitHub Desktop.
addToDepCache() {
local existing
for existing in "${cachedDependencies[@]}"; do
if [ "$existing" = "$1" ]; then return; fi
done
cachedDependencies+=("$1")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment