mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-25 17:04:54 +00:00
18 lines
414 B
Plaintext
18 lines
414 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
DOTS=$(dirname "$0")/..
|
||
|
cd "$DOTS" || (echo "Directory not found: $DOTS"; exit 1)
|
||
|
DOTS="$PWD"
|
||
|
|
||
|
all_brews() {
|
||
|
brewfile=$DOTS/homebrew/Caskfile
|
||
|
for brewfile in $(find "$DOTS/homebrew" -iname "*.Brewfile")
|
||
|
do
|
||
|
/usr/local/bin/brew bundle check --file "$brewfile" \
|
||
|
&& /usr/local/bin/brew bundle --file "$brewfile"
|
||
|
done \
|
||
|
&& echo "all brews installed ✓"
|
||
|
}
|
||
|
|
||
|
all_brews
|