From 8924adedeb853495863ba3724038f7ef2ab982df Mon Sep 17 00:00:00 2001 From: shocknet-justin Date: Wed, 26 Nov 2025 17:10:27 -0500 Subject: [PATCH] parsing --- scripts/handle_macos.sh | 5 ----- scripts/install.sh | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) 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