mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 11:21: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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user