This commit is contained in:
shocknet-justin 2025-11-26 17:10:27 -05:00
parent 8e0bb78527
commit 8924adedeb
2 changed files with 1 additions and 6 deletions

View file

@ -10,11 +10,6 @@ handle_macos() {
export LAUNCH_AGENTS_DIR="$HOME/Library/LaunchAgents" export LAUNCH_AGENTS_DIR="$HOME/Library/LaunchAgents"
mkdir -p "$LAUNCH_AGENTS_DIR" 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 # Install LND
log "${PRIMARY_COLOR}Installing${RESET_COLOR} ${SECONDARY_COLOR}LND${RESET_COLOR}..." log "${PRIMARY_COLOR}Installing${RESET_COLOR} ${SECONDARY_COLOR}LND${RESET_COLOR}..."
LND_STATUS_FILE=$(mktemp) LND_STATUS_FILE=$(mktemp)

View file

@ -101,7 +101,7 @@ mktemp_in() {
json_value() { json_value() {
local key="$1" local key="$1"
if [ "$OS" = "Mac" ]; then 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 else
echo "$2" | grep -oP "\"${key}\": \"\\K[^\"]+" echo "$2" | grep -oP "\"${key}\": \"\\K[^\"]+"
fi fi