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:
@ -24,7 +24,7 @@ try {
|
||||
|
||||
"⏳ (1/3) Searching for ffmpeg..."
|
||||
& ffmpeg -L
|
||||
if ($lastExitCode -ne "0") { throw "Can't execute 'ffmpeg' - make sure ffmpeg is installed and available" }
|
||||
if ($lastExitCode -ne 0) { throw "Can't execute 'ffmpeg' - make sure ffmpeg is installed and available" }
|
||||
|
||||
"⏳ (2/3) Checking file pattern of the image frames..."
|
||||
$Files = (Get-ChildItem -path "$SourcePattern" -attributes !Directory)
|
||||
|
Reference in New Issue
Block a user