-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Check if buckets are outdated in scoop status
#3550
Conversation
Duplicating code from update is not key. completely easy, non resource consuming fix could look like this:, Test-UpdateStatus {
Get-LocalBucket | Foreach-Object {
$loc = Find-BucketDirectory $_ -Root
Push-Location $
git_fetch -q
$status = (git_status) -like 'is behind'
Pop-Location
if ($status) { return $true }
}
} |
@Ash258 *In PowerShell, How about this? |
if($needs_update) { | ||
# check if scoop needs updating | ||
$needs_update = !(Test-ScoopLatest) | ||
if ($needs_update) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ($needs_update) { | |
if (!(Test-ScoopLatest)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$needs_update
is also used in L115.
Superseded by #5011 |
#3549