mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-12 06:02:56 +02:00
Improved check for $lastExitCode
This commit is contained in:
@ -26,7 +26,7 @@ try {
|
||||
|
||||
Write-Host "⏳ (1/3) Searching for IPFS executable..." -NoNewline
|
||||
& ipfs --version
|
||||
if ($lastExitCode -ne "0") { throw "Can't execute 'ipfs' - make sure IPFS is installed and available" }
|
||||
if ($lastExitCode -ne 0) { throw "Can't execute 'ipfs' - make sure IPFS is installed and available" }
|
||||
|
||||
if (test-path "$FilePattern" -pathType container) {
|
||||
"⏳ (2/3) Publishing folder $FilePattern/..."
|
||||
|
Reference in New Issue
Block a user