install.sh: Run brew update before install
Ensure formulas are up to date.
This commit is contained in:
parent
cb414e5382
commit
89e0e0cf6a
2 changed files with 2 additions and 10 deletions
|
|
@ -348,6 +348,7 @@ install_d2_standalone() {
|
||||||
install_d2_brew() {
|
install_d2_brew() {
|
||||||
header "installing d2 with homebrew"
|
header "installing d2 with homebrew"
|
||||||
sh_c brew tap terrastruct/d2
|
sh_c brew tap terrastruct/d2
|
||||||
|
sh_c brew update
|
||||||
sh_c brew install d2
|
sh_c brew install d2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -502,11 +503,6 @@ fetch_gh() {
|
||||||
sh_c mv "$file.inprogress" "$file"
|
sh_c mv "$file.inprogress" "$file"
|
||||||
}
|
}
|
||||||
|
|
||||||
brew() {
|
|
||||||
# Makes brew sane.
|
|
||||||
HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 command brew "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
# The main function does more than provide organization. It provides robustness in that if
|
# The main function does more than provide organization. It provides robustness in that if
|
||||||
# the install script was to only partial download into sh, sh will not execute it because
|
# the install script was to only partial download into sh, sh will not execute it because
|
||||||
# main is not invoked until the very last byte.
|
# main is not invoked until the very last byte.
|
||||||
|
|
|
||||||
|
|
@ -931,6 +931,7 @@ install_d2_standalone() {
|
||||||
install_d2_brew() {
|
install_d2_brew() {
|
||||||
header "installing d2 with homebrew"
|
header "installing d2 with homebrew"
|
||||||
sh_c brew tap terrastruct/d2
|
sh_c brew tap terrastruct/d2
|
||||||
|
sh_c brew update
|
||||||
sh_c brew install d2
|
sh_c brew install d2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1085,11 +1086,6 @@ fetch_gh() {
|
||||||
sh_c mv "$file.inprogress" "$file"
|
sh_c mv "$file.inprogress" "$file"
|
||||||
}
|
}
|
||||||
|
|
||||||
brew() {
|
|
||||||
# Makes brew sane.
|
|
||||||
HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 command brew "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
# The main function does more than provide organization. It provides robustness in that if
|
# The main function does more than provide organization. It provides robustness in that if
|
||||||
# the install script was to only partial download into sh, sh will not execute it because
|
# the install script was to only partial download into sh, sh will not execute it because
|
||||||
# main is not invoked until the very last byte.
|
# main is not invoked until the very last byte.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue