mac restore
This commit is contained in:
parent
438bea47a7
commit
688033769d
3 changed files with 18 additions and 22 deletions
|
|
@ -10,13 +10,11 @@ install_lnd() {
|
|||
USER_NAME=$(whoami)
|
||||
|
||||
log "Checking latest LND version..."
|
||||
local api_response=$(download_stdout "https://api.github.com/repos/lightningnetwork/lnd/releases/latest")
|
||||
LND_VERSION=$(json_value "tag_name" "$api_response")
|
||||
LND_VERSION=$(get_latest_release_tag "lightningnetwork/lnd")
|
||||
|
||||
if [ -z "$LND_VERSION" ]; then
|
||||
# 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}"
|
||||
log "${PRIMARY_COLOR}Failed to fetch latest LND version.${RESET_COLOR}"
|
||||
exit 1
|
||||
fi
|
||||
log "Latest LND version: $LND_VERSION"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue