Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libexec/scoop-reset.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ $apps | ForEach-Object {

#region Workaround for #2952
$processdir = $dir | Select-Object -ExpandProperty Path
if (Get-Process | Where-Object { $_.Path -like "$processdir\*" }) {
if ((Get-Process | Where-Object { $_.Path -like "$processdir\*" }) -and
(Read-Host "Application '$app' is still running. Do you want to proceed uninstallation? All unsaved data will be lost [y/N]") -ne 'y') {
Comment thread
rashil2000 marked this conversation as resolved.
Outdated
error "Application is still running. Close all instances and try again."
continue
}
Expand Down
3 changes: 2 additions & 1 deletion libexec/scoop-uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ if (!$apps) { exit 0 }

#region Workaround for #2952
$processdir = $appDir | Resolve-Path | Select-Object -ExpandProperty Path
if (Get-Process | Where-Object { $_.Path -like "$processdir\*" }) {
if ((Get-Process | Where-Object { $_.Path -like "$processdir\*" }) -and
(Read-Host "Application '$app' is still running. Do you want to proceed uninstallation? All unsaved data will be lost [y/N]") -ne 'y') {
Comment thread
rashil2000 marked this conversation as resolved.
Outdated
error 'Application is still running. Close all instances and try again.'
continue
}
Expand Down
3 changes: 2 additions & 1 deletion libexec/scoop-update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ function update($app, $global, $quiet = $false, $independent, $suggested, $use_c

#region Workaround for #2952
$processdir = appdir $app $global | Resolve-Path | Select-Object -ExpandProperty Path
if (Get-Process | Where-Object { $_.Path -like "$processdir\*" }) {
if ((Get-Process | Where-Object { $_.Path -like "$processdir\*" }) -and
(Read-Host "Application '$app' is still running. Do you want to proceed uninstallation? All unsaved data will be lost [y/N]") -ne 'y') {
Comment thread
rashil2000 marked this conversation as resolved.
Outdated
error "Application is still running. Close all instances and try again."
return
}
Expand Down