mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Fix install scripts
This commit is contained in:
parent
ac6567ba59
commit
019d70cc52
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue