mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-24 19:30:34 +00:00
15 lines
369 B
PowerShell
15 lines
369 B
PowerShell
#!C:\Program Files\PowerShell\7\pwsh.EXE -File
|
|
|
|
$bin = '/usr/bin/neo-go.exe'
|
|
|
|
for ( $i = 0; $i -lt $args.count; $i++ ) {
|
|
if ($args[$i] -eq "node"){
|
|
Write-Host "=> Try to restore blocks before running node"
|
|
if (($Env:ACC -ne $null) -and (Test-Path $Env:ACC -PathType Leaf)) {
|
|
& $bin db restore -p --config-path /config -i $Env:ACC
|
|
}
|
|
break
|
|
}
|
|
}
|
|
|
|
& $bin $args
|