-
-
Save dminuoso/9e2c8be673e99990242bc2e1d7cbc0f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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