Skip to content

Commit

Permalink
(tixati) revised fix for (chocolatey-community#2182)
Browse files Browse the repository at this point in the history
  • Loading branch information
teknowledgist committed Feb 9, 2024
1 parent 6ccb440 commit aac8425
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions automatic/tixati/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$ErrorActionPreference = 'Stop'

foreach ($process in (Get-Process "$env:ChocolateyPackageName*" -ErrorAction SilentlyContinue)) {
Stop-Process -Name $process.ProcessName -Force
if (Get-Process "Tixati*" -ErrorAction SilentlyContinue) {
Throw "Tixati is running! To prevent data loss, please fully quit Tixati before attempting to upgrade it."
}

$toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
Expand Down
4 changes: 2 additions & 2 deletions automatic/tixati/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$ErrorActionPreference = 'Stop'

foreach ($process in (Get-Process "$env:ChocolateyPackageName*" -ErrorAction SilentlyContinue)) {
Stop-Process -Name $process.ProcessName -Force
if (Get-Process "Tixati*" -ErrorAction SilentlyContinue) {
Throw "Tixati is running! To prevent data loss, please fully quit Tixati before attempting to uninstall it."
}

$packageName = 'tixati'
Expand Down

0 comments on commit aac8425

Please sign in to comment.