feat: macos and brew install support

This commit is contained in:
Andrejus Kostarevas
2024-01-25 00:27:04 +00:00
parent 62e6c0243e
commit 61fb58e90c
15 changed files with 148 additions and 45 deletions

19
script/install.d/02-brew.sh Executable file
View 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