Compare commits
2 Commits
b470f1cf43
...
d14ab2d7ff
Author | SHA1 | Date | |
---|---|---|---|
d14ab2d7ff
|
|||
5df3b86fc9
|
1
.brew_programs_disable
Normal file
1
.brew_programs_disable
Normal file
@@ -0,0 +1 @@
|
|||||||
|
example
|
@@ -446,15 +446,20 @@ function install_brew_programs() {
|
|||||||
INSTALLED_PROGRAMS=$(brew list)
|
INSTALLED_PROGRAMS=$(brew list)
|
||||||
while IFS='' read -r line; do LIST_OF_PROGRAMS+=("$line"); done < <(cat "$HOME"/.brew_programs)
|
while IFS='' read -r line; do LIST_OF_PROGRAMS+=("$line"); done < <(cat "$HOME"/.brew_programs)
|
||||||
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
|
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
|
||||||
|
while IFS='' read -r line; do LIST_OF_PROGRAMS_DISABLE+=("$line"); done < <(cat "$HOME"/.brew_programs_disable)
|
||||||
|
|
||||||
for i in "${LIST_OF_PROGRAMS[@]}"; do
|
for i in "${LIST_OF_PROGRAMS[@]}"; do
|
||||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
|
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
|
||||||
|
&& \
|
||||||
|
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
|
||||||
brew install $i --force
|
brew install $i --force
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
|
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
|
||||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]]; then
|
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] \
|
||||||
|
&& \
|
||||||
|
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
|
||||||
brew install $i --cask --force
|
brew install $i --cask --force
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user