Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logic in PSM1 for updating modules for Mac and Linux if existing. #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
@@ -2,10 +2,18 @@ if($IsMacOS -and !(Get-Module MacNotify -list)) {
Install-Module MacNotify
}

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.

2 participants