bugfix: check default value and force lowercase

This commit is contained in:
Baipyrus 2024-11-28 15:07:58 +01:00
parent 4ab07fb4db
commit 1846230e91

View File

@ -62,8 +62,8 @@ function CopyFileWithPrompt
if (Test-Path $destination) if (Test-Path $destination)
{ {
$overwrite = Read-Host "File $destination exists. Overwrite? (y/n)" $overwrite = Read-Host "File $destination exists. Overwrite? (y/N)"
if ($overwrite -ne 'y') if ($overwrite.ToLower() -ne 'y')
{ {
Write-Host "Skipping $destination" -ForegroundColor Yellow Write-Host "Skipping $destination" -ForegroundColor Yellow
return return