curl fallback for mac
This commit is contained in:
parent
20dd93d8f0
commit
ba1984c106
6 changed files with 58 additions and 14 deletions
|
|
@ -10,14 +10,11 @@ handle_macos() {
|
|||
export LAUNCH_AGENTS_DIR="$HOME/Library/LaunchAgents"
|
||||
mkdir -p "$LAUNCH_AGENTS_DIR"
|
||||
|
||||
# Install Homebrew if needed
|
||||
# Install Homebrew if needed (skipped if not found, we don't force it)
|
||||
if ! command -v brew &> /dev/null; then
|
||||
log "${PRIMARY_COLOR}Installing Homebrew...${RESET_COLOR}"
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || {
|
||||
log_error "Failed to install Homebrew" 1
|
||||
}
|
||||
log "${PRIMARY_COLOR}Homebrew not found. Proceeding without it...${RESET_COLOR}"
|
||||
fi
|
||||
|
||||
|
||||
# Install LND
|
||||
log "${PRIMARY_COLOR}Installing${RESET_COLOR} ${SECONDARY_COLOR}LND${RESET_COLOR}..."
|
||||
lnd_output=$(install_lnd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue