mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Improve install script output
This commit is contained in:
parent
b6ea61170f
commit
34c62c5268
2 changed files with 2 additions and 14 deletions
|
|
@ -85,16 +85,11 @@ function Install-SafeChain {
|
|||
Write-Info "Binary installed to: $finalFile"
|
||||
|
||||
# Execute safe-chain setup
|
||||
Write-Info "Running safe-chain setup..."
|
||||
|
||||
try {
|
||||
$env:Path = "$env:Path;$InstallDir"
|
||||
& $finalFile setup
|
||||
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Info "✓ safe-chain installed and configured successfully!"
|
||||
}
|
||||
else {
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Warn "safe-chain was installed but setup encountered issues."
|
||||
Write-Warn "You can run 'safe-chain setup' manually later."
|
||||
}
|
||||
|
|
@ -103,8 +98,6 @@ function Install-SafeChain {
|
|||
Write-Warn "safe-chain was installed but setup encountered issues: $_"
|
||||
Write-Warn "You can run 'safe-chain setup' manually later."
|
||||
}
|
||||
|
||||
Write-Info "Installation complete!"
|
||||
}
|
||||
|
||||
# Run installation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue