From 019d70cc5228efbcb7896b114a613bde82b5a690 Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Wed, 3 Dec 2025 12:02:19 +0100 Subject: [PATCH] Fix install scripts --- install-scripts/install-safe-chain.ps1 | 3 +-- install-scripts/install-safe-chain.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/install-scripts/install-safe-chain.ps1 b/install-scripts/install-safe-chain.ps1 index 230bb11..c7a6df5 100644 --- a/install-scripts/install-safe-chain.ps1 +++ b/install-scripts/install-safe-chain.ps1 @@ -33,8 +33,6 @@ function Write-Error-Custom { # Fetch latest release version tag from GitHub function Get-LatestVersion { - Write-Info "Fetching latest release version..." - try { $response = Invoke-RestMethod -Uri "https://api.github.com/repos/AikidoSec/safe-chain/releases/latest" -UseBasicParsing $latestVersion = $response.tag_name @@ -113,6 +111,7 @@ function Remove-VoltaInstallation { function Install-SafeChain { # Fetch latest version if VERSION is not set if ([string]::IsNullOrWhiteSpace($script:Version)) { + Write-Info "Fetching latest release version..." $script:Version = Get-LatestVersion } diff --git a/install-scripts/install-safe-chain.sh b/install-scripts/install-safe-chain.sh index 0fbbf34..2afb583 100755 --- a/install-scripts/install-safe-chain.sh +++ b/install-scripts/install-safe-chain.sh @@ -56,8 +56,6 @@ command_exists() { # Fetch latest release version tag from GitHub fetch_latest_version() { - info "Fetching latest release version..." - # Try using GitHub API to get the latest release tag if command_exists curl; then latest_version=$(curl -fsSL "https://api.github.com/repos/AikidoSec/safe-chain/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/') @@ -157,6 +155,7 @@ main() { # Fetch latest version if VERSION is not set if [ -z "$VERSION" ]; then + info "Fetching latest release version..." VERSION=$(fetch_latest_version) fi