Update Generate-PinCodes.ps1
This commit is contained in:
@@ -204,7 +204,7 @@ if (Test-Path $filePath) {
|
|||||||
$confirmation = Read-Host "The file '$filePath' already exists. Do you want to overwrite it? (Y/N)"
|
$confirmation = Read-Host "The file '$filePath' already exists. Do you want to overwrite it? (Y/N)"
|
||||||
|
|
||||||
# Check the user's response
|
# Check the user's response
|
||||||
if ($confirmation -eq "Y" -or $confirmation -eq "y") {
|
if ($confirmation -ieq "Y") {
|
||||||
# User confirmed, proceed with overwriting
|
# User confirmed, proceed with overwriting
|
||||||
$randomizedNumbers | Out-File -FilePath $filePath -Force
|
$randomizedNumbers | Out-File -FilePath $filePath -Force
|
||||||
Write-Host "File '$filePath' overwritten successfully."
|
Write-Host "File '$filePath' overwritten successfully."
|
||||||
|
|||||||
Reference in New Issue
Block a user