diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/VcpkgPowershellUtils.ps1 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/VcpkgPowershellUtils.ps1 b/scripts/VcpkgPowershellUtils.ps1 index 4aaad3479..07270dd22 100644 --- a/scripts/VcpkgPowershellUtils.ps1 +++ b/scripts/VcpkgPowershellUtils.ps1 @@ -27,6 +27,11 @@ function vcpkgCreateParentDirectoryIfNotExists([Parameter(Mandatory=$true)][stri function vcpkgRemoveItem([Parameter(Mandatory=$true)][string]$dirPath) { + if ([string]::IsNullOrEmpty($dirPath)) + { + return + } + if (Test-Path $dirPath) { Remove-Item $dirPath -Recurse -Force |
