Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Romanitho committed Jun 4, 2022
1 parent 3952a3f commit e0854d8
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions winget-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -368,16 +368,14 @@ foreach ($App_Full in $AppIDs){
#Log current App
Write-Log "Start $AppID processing..." "Blue"

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
}
#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
}

#Log current App
Expand Down

0 comments on commit e0854d8

Please sign in to comment.