Skip to content

Instantly share code, notes, and snippets.

@dminuoso dminuoso/foo.sh Secret
Created Jun 12, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.