mac debug

This commit is contained in:
shocknet-justin 2025-11-26 13:57:06 -05:00
parent 6dc313e3c0
commit 438bea47a7
2 changed files with 7 additions and 2 deletions

View file

@ -14,8 +14,9 @@ install_lnd() {
LND_VERSION=$(json_value "tag_name" "$api_response") LND_VERSION=$(json_value "tag_name" "$api_response")
if [ -z "$LND_VERSION" ]; then if [ -z "$LND_VERSION" ]; then
log "${PRIMARY_COLOR}Failed to fetch latest LND version.${RESET_COLOR}" # Fallback to a known stable version if GitHub API fails (e.g. rate limit)
exit 1 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 fi
log "Latest LND version: $LND_VERSION" log "Latest LND version: $LND_VERSION"

View file

@ -15,6 +15,10 @@ install_nodejs() {
if ! command -v nvm &> /dev/null; then if ! command -v nvm &> /dev/null; then
local nvm_api=$(download_stdout "https://api.github.com/repos/nvm-sh/nvm/releases/latest") local nvm_api=$(download_stdout "https://api.github.com/repos/nvm-sh/nvm/releases/latest")
NVM_VERSION=$(json_value "tag_name" "$nvm_api") 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 download_stdout "https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh" | bash > /dev/null 2>&1
export NVM_DIR="${NVM_DIR}" export NVM_DIR="${NVM_DIR}"
[ -s "${NVM_DIR}/nvm.sh" ] && \. "${NVM_DIR}/nvm.sh" [ -s "${NVM_DIR}/nvm.sh" ] && \. "${NVM_DIR}/nvm.sh"