Skip to content

Commit

Permalink
Set a unique loop variable
Browse files Browse the repository at this point in the history
  • Loading branch information
robruma committed Sep 27, 2018
1 parent 309e4b8 commit d2a89f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ if [[ -x /usr/local/bin/brew ]]; then
for EXCLUDED_ELEMENT in ${!HOMEBREW_CASKS[@]}
do
if [[ $EXCLUDED_CASK =~ ^${HOMEBREW_CASKS[$EXCLUDED_ELEMENT]}$ ]]; then
for PACKAGE in ${!HOMEBREW_OUTDATED[@]}
for EXCLUDED_PACKAGE in ${!HOMEBREW_OUTDATED[@]}
do
if [[ "$(tput setab 1)${EXCLUDED_CASK}$(tput sgr0) ($(tput setaf 3)$(tput bold)excluded$(tput sgr0))" == ${HOMEBREW_OUTDATED[$PACKAGE]} ]]; then
if [[ "$(tput setab 1)${EXCLUDED_CASK}$(tput sgr0) ($(tput setaf 3)$(tput bold)excluded$(tput sgr0))" == ${HOMEBREW_OUTDATED[$EXCLUDED_PACKAGE]} ]]; then
echo -e "Excluded cask found: Skipping $(tput setab 1)${HOMEBREW_CASKS[$EXCLUDED_ELEMENT]}$(tput sgr0)"
unset HOMEBREW_CASKS[$EXCLUDED_ELEMENT]
fi
Expand Down

0 comments on commit d2a89f2

Please sign in to comment.