Update Generate-PinCodes.ps1

This commit is contained in:
Zarcolio
2023-09-09 21:30:04 +02:00
committed by GitHub
parent 00d3986d93
commit de7404e04e
@@ -204,7 +204,7 @@ if (Test-Path $filePath) {
$confirmation = Read-Host "The file '$filePath' already exists. Do you want to overwrite it? (Y/N)"
# Check the user's response
if ($confirmation -eq "Y" -or $confirmation -eq "y") {
if ($confirmation -ieq "Y") {
# User confirmed, proceed with overwriting
$randomizedNumbers | Out-File -FilePath $filePath -Force
Write-Host "File '$filePath' overwritten successfully."