-
-
Save CurlyBytes/83ee81217bb86e05f61daa67bbeebc80 to your computer and use it in GitHub Desktop.
Outdated Choco
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ErrorActionPreference = "Stop" | |
| Import-Module -Name PushoverForPS | |
| $outdated = (choco outdated -r | Select-String '^([^|]+)\|.*$').Matches.Groups | Where-Object {$_.Name -eq 1} | ForEach-Object {$_.Value} | |
| $pretty = ($outdated -join ', ') | |
| If ($outdated.count -gt 0) { | |
| Send-Pushover -AppToken TOKENGOESHERE -UserKey KEYGOESHERE -Message "Outdated packages: `n$pretty" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment