diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index 8364070..ebf30f2 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -3494,7 +3494,7 @@ Function Get-USBDrive { } # Check if any USB drives were found - if ($null -eq $USBDrives) { + if ($USBDrives.Count -eq 0) { WriteLog "No USB drive found. Exiting" Write-Error "No USB drive found. Exiting" exit 1