Skip to content

Conversation

@steviecoaster
Copy link
Collaborator

@steviecoaster steviecoaster commented Mar 9, 2019

Since I made the change to PSNotifySend users with the module already installed won't get the update, keeping their module broken.

While this won't fix things straight away for them, after they update to the new release of this, things will stay unbroken if we make changes to the modules we wrap this around.

Fixes #29

@steviecoaster steviecoaster added the enhancement New feature or request label Mar 9, 2019
}

if($IsMacOS -and (Get-Module MacNotify -list)) {
Update-Module MacNotify
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we maybe use Find-Module to check if there's a newer version before executing the Update-Module?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, that's a really good idea.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also... I'm not sure of a good xplat way to do this... but testing for an internet connection before the Find-Module would be ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants