Update-StoreApps only if fail or uncertain
parent
189830c09f
commit
cb82fb148e
|
@ -40,7 +40,6 @@ Function Update-WinGet ($WinGetAvailableVersion, $DownloadPath, $Log = $false) {
|
||||||
$WingetPath = $ResolveWingetPath[-1].Path
|
$WingetPath = $ResolveWingetPath[-1].Path
|
||||||
& $WingetPath source reset --force
|
& $WingetPath source reset --force
|
||||||
}
|
}
|
||||||
Update-StoreApps
|
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
switch ($Log) {
|
switch ($Log) {
|
||||||
|
|
Loading…
Reference in New Issue