From 43eb83d061ad5b8ed4dfec1bda98c0d70246dcc7 Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Sun, 23 Apr 2023 11:22:00 +0200 Subject: [PATCH] test --- Winget-AutoUpdate/Winget-Upgrade.ps1 | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/Winget-AutoUpdate/Winget-Upgrade.ps1 b/Winget-AutoUpdate/Winget-Upgrade.ps1 index 8268a64..f6434e4 100644 --- a/Winget-AutoUpdate/Winget-Upgrade.ps1 +++ b/Winget-AutoUpdate/Winget-Upgrade.ps1 @@ -219,28 +219,6 @@ if (Test-Network) { $Log | out-file -filepath $LogFile -Append } - #Ask for user if configured - if ($WAUConfig.WAU_UserApproval -eq 1){ - Write-Log "User Approval feature enabled." - #Check for approved tag - $WAUNotifApproved = "$WorkingDir/Config/NotifApproved.txt" - - if (!(Test-Path $WAUNotifApproved)) { - $UserApprovalReturn = Invoke-UserApproval $outdated - if ($UserApprovalReturn -eq 0){ - Write-Log "-> User approval requested. Waiting for user to approve available updates..." - #Closing job, waiting for user approval - Exit 0 - } - else{ - Write-log "-> No update to request to user." - } - } - else { - Write-Log "-> User approved notification." - } - } - #Count good update installations $Script:InstallOK = 0