Improve brew support on Linux

This commit is contained in:
Shivam Mathur
2022-10-10 16:24:35 +05:30
parent edff21f0a6
commit 71b0e09dbc
2 changed files with 35 additions and 32 deletions

View File

@ -1,12 +1,3 @@
# Function to setup environment for self-hosted runners.
self_hosted_helper() {
if ! command -v brew >/dev/null; then
step_log "Setup Brew"
get -q -e "/tmp/install.sh" "https://raw.githubusercontent.com/Homebrew/install/master/install.sh" && /tmp/install.sh >/dev/null 2>&1
add_log "${tick:?}" "Brew" "Installed Homebrew"
fi
}
# Disable dependency extensions
disable_dependency_extensions() {
local extension=$1