pull/493/head
Romain 2023-11-20 17:59:49 +01:00 committed by GitHub
parent 6fe4999be1
commit 40cb5da9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -68,12 +68,12 @@ Function Update-WinGet {
#If multiple versions, pick most recent one #If multiple versions, pick most recent one
$WingetCmd = $WingetInfo[-1].FileName $WingetCmd = $WingetInfo[-1].FileName
& $WingetCmd source reset --force & $WingetCmd source reset --force
Write-ToLog "-> WinGet sources reset." "green" Write-ToLog "-> WinGet sources reset.`n" "green"
$return = "success" $return = "success"
} }
catch { catch {
Write-ToLog "-> Failed to install WinGet MSIXBundle for App Installer..." "red" Write-ToLog "-> Failed to install WinGet MSIXBundle for App Installer...`n" "red"
#Force Store Apps to update #Force Store Apps to update
Update-StoreApps Update-StoreApps
$return = "fail" $return = "fail"
@ -86,7 +86,7 @@ Function Update-WinGet {
return $return return $return
} }
else { else {
Write-ToLog "-> WinGet is up to date: v$WinGetInstalledVersion" "Green" Write-ToLog "-> WinGet is up to date: v$WinGetInstalledVersion`n" "Green"
return "current" return "current"
} }
} }