diff --git a/scripts/handle_macos.sh b/scripts/handle_macos.sh index 8fecd185..55b33d01 100644 --- a/scripts/handle_macos.sh +++ b/scripts/handle_macos.sh @@ -10,11 +10,6 @@ handle_macos() { export LAUNCH_AGENTS_DIR="$HOME/Library/LaunchAgents" mkdir -p "$LAUNCH_AGENTS_DIR" - # Install Homebrew if needed (skipped if not found, we don't force it) - if ! command -v brew &> /dev/null; then - 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_STATUS_FILE=$(mktemp) diff --git a/scripts/install.sh b/scripts/install.sh index 6c8e7c76..e8bb749b 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -101,7 +101,7 @@ mktemp_in() { json_value() { local key="$1" if [ "$OS" = "Mac" ]; then - echo "$2" | awk -F"\"${key}\"[[:space:]]*:[[:space:]]*\"" '{print $2}' | awk -F'"' '{print $1}' | head -1 + echo "$2" | grep "\"${key}\"" | awk -F'"' '{print $4}' | head -1 else echo "$2" | grep -oP "\"${key}\": \"\\K[^\"]+" fi