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

Save and restore $env:PSModulePath until we find why it's being clobbered on PS Core #176

Merged
merged 3 commits into from
Feb 24, 2018

Conversation

codykonior
Copy link
Contributor

Fixes #175 .

Changes proposed in this pull request:

  • Save and restore $env:PSModulePath around the critical block

How to test this code:
pwsh
Add-WindowsPSModulePath
Import-Module PoshRSJob
Import-Module PoshRSJob

(I don't think it's possible to reproduce this on AppVeyor)

Has been tested on (remove any that don't apply):

  • Powershell 3 and above
  • Windows 7 and above

@proxb
Copy link
Owner

proxb commented Feb 24, 2018

Thanks @codykonior ! That is a weird issue.

@proxb proxb merged commit 83ce4ae into proxb:master Feb 24, 2018
codykonior added a commit to codykonior/PoshRSJob that referenced this pull request Sep 10, 2018
Merge pull request proxb#176 from codykonior/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants