From 438bea47a7f8fab9fa440f0971f0081b3bdc711c Mon Sep 17 00:00:00 2001 From: shocknet-justin Date: Wed, 26 Nov 2025 13:57:06 -0500 Subject: [PATCH] mac debug --- scripts/install_lnd.sh | 5 +++-- scripts/install_nodejs.sh | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/install_lnd.sh b/scripts/install_lnd.sh index be2fdd14..459e7eb4 100755 --- a/scripts/install_lnd.sh +++ b/scripts/install_lnd.sh @@ -14,8 +14,9 @@ install_lnd() { LND_VERSION=$(json_value "tag_name" "$api_response") if [ -z "$LND_VERSION" ]; then - log "${PRIMARY_COLOR}Failed to fetch latest LND version.${RESET_COLOR}" - exit 1 + # Fallback to a known stable version if GitHub API fails (e.g. rate limit) + LND_VERSION="v0.18.3-beta" + log "${PRIMARY_COLOR}Warning: Failed to fetch latest LND version from GitHub. Using fallback: ${LND_VERSION}${RESET_COLOR}" fi log "Latest LND version: $LND_VERSION" diff --git a/scripts/install_nodejs.sh b/scripts/install_nodejs.sh index 53824e3c..ce1b47eb 100755 --- a/scripts/install_nodejs.sh +++ b/scripts/install_nodejs.sh @@ -15,6 +15,10 @@ install_nodejs() { if ! command -v nvm &> /dev/null; then local nvm_api=$(download_stdout "https://api.github.com/repos/nvm-sh/nvm/releases/latest") NVM_VERSION=$(json_value "tag_name" "$nvm_api") + if [ -z "$NVM_VERSION" ]; then + NVM_VERSION="v0.39.7" + log "Warning: Failed to fetch latest NVM version. Using fallback: $NVM_VERSION" + fi download_stdout "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" | bash > /dev/null 2>&1 export NVM_DIR="${NVM_DIR}" [ -s "${NVM_DIR}/nvm.sh" ] && \. "${NVM_DIR}/nvm.sh"