mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 03:11:45 +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