From 8ccfdabc4599764762c52bb767343599ef835981 Mon Sep 17 00:00:00 2001 From: Jerry Chae Date: Wed, 13 May 2026 19:39:35 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=EC=A1=B4=EC=97=90=20lazygit=EC=9D=B4?= =?UTF-8?q?=20=EB=8F=8C=EA=B3=A0=20=EC=9E=88=EC=9C=BC=EB=A9=B4=20=EB=82=98?= =?UTF-8?q?=EB=8A=94=20=EC=98=A4=EB=A5=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-lazygit.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install-lazygit.ps1 b/install-lazygit.ps1 index 096bdbb..33d4d76 100644 --- a/install-lazygit.ps1 +++ b/install-lazygit.ps1 @@ -308,7 +308,12 @@ function Install-Lazygit { $destPath = Join-Path $InstallDir "lazygit.exe" Write-Info "Installing: $destPath" - Copy-Item -Path $lazygitExe.FullName -Destination $destPath -Force + + try { + Copy-Item -Path $lazygitExe.FullName -Destination $destPath -Force + } catch { + Write-Err "lazygit.exe is currently running. Please close lazygit and run this script again." + } Write-Success "Installation complete!"