mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-25 10:51:46 +00:00
bugfix: check default value and force lowercase
This commit is contained in:
parent
4ab07fb4db
commit
1846230e91
@ -62,8 +62,8 @@ function CopyFileWithPrompt
|
||||
|
||||
if (Test-Path $destination)
|
||||
{
|
||||
$overwrite = Read-Host "File $destination exists. Overwrite? (y/n)"
|
||||
if ($overwrite -ne 'y')
|
||||
$overwrite = Read-Host "File $destination exists. Overwrite? (y/N)"
|
||||
if ($overwrite.ToLower() -ne 'y')
|
||||
{
|
||||
Write-Host "Skipping $destination" -ForegroundColor Yellow
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user