feat: macos and brew install support
This commit is contained in:
19
script/install.d/02-brew.sh
Executable file
19
script/install.d/02-brew.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Description:
|
||||
# (macOS only) Install homebrew.
|
||||
#
|
||||
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
export NONINTERACTIVE=1
|
||||
if ! bin_in_path brew; then
|
||||
download_run https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh /bin/bash
|
||||
else
|
||||
brew update
|
||||
fi
|
||||
|
||||
brew --version
|
||||
|
||||
unset NONINTERACTIVE
|
||||
fi
|
||||
Reference in New Issue
Block a user