From 1846230e91d6e439e62953a78d8eb34c7f791091 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 28 Nov 2024 15:07:58 +0100 Subject: [PATCH] bugfix: check default value and force lowercase --- util/windows.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/windows.psm1 b/util/windows.psm1 index 1576f94..a9a2ccd 100644 --- a/util/windows.psm1 +++ b/util/windows.psm1 @@ -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