기존에 lazygit이 돌고 있으면 나는 오류
This commit is contained in:
1 parent
3e2ac25713
commit
8ccfdabc45
1 file changed
+6
-1
+6
-1
@@ -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!"
|
||||
|
||||
|
||||
Reference in new issue
Block a user