Skip to content

Commit

Permalink
Merge pull request #47 from Romanitho/Minor-change-for-uninstall
Browse files Browse the repository at this point in the history
Minor change for uninstall job
  • Loading branch information
Romanitho authored Jun 4, 2022
2 parents 42e3d77 + 0bb424e commit 3952a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions winget-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,14 @@ foreach ($App_Full in $AppIDs){
#Log current App
Write-Log "Start $AppID processing..." "Blue"

#Check if app exists on Winget Repo
$Exists = Confirm-Exist $AppID
if ($Exists){
#Install or Uninstall command
if ($Uninstall){
Uninstall-App $AppID $AppArgs
}
else{
#Check if app exists on Winget Repo
$Exists = Confirm-Exist $AppID
Install-App $AppID $AppArgs
}
}
Expand Down

0 comments on commit 3952a3f

Please sign in to comment.