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 Format() on Powershell 5.1 #28

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

halvarsson
Copy link
Collaborator

This is a fix for Format() where it's currently failing on PowerShell 5.1, I came across the same error as described in #17, but while testing I could not reproduce it in PowerShell 7, and with PowerShell 5.1 it always threw an exception... Not exactly sure what's going on but it's unable to read the value from the arguments

image

I updated it to use the same approach as we do for running scripts, as this works fine on both PowerShell 5.1 and 7

halvarsson and others added 2 commits February 25, 2023 18:55
The current way of executing it is unable to parse arguments

The updated approach works on both powershell 5.1 and 7 :-)
@adamdriscoll adamdriscoll merged commit 38a3fe1 into ironmansoftware:main Feb 27, 2023
@halvarsson halvarsson deleted the fix-ps51-format-script branch February 27, 2023 15:44
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