Skip to content

Conversation

@cstamas
Copy link
Member

@cstamas cstamas commented Apr 17, 2024

As Marcono1234 on JIRA issue recommended, added workaround just before the use of Get-FileHash call.


https://issues.apache.org/jira/browse/MWRAPPER-103

@cstamas
Copy link
Member Author

cstamas commented Apr 17, 2024

Unsure is thie import module needed for other use of Get-FileHash as well?

)
IF NOT %WRAPPER_SHA_256_SUM%=="" (
powershell -Command "&{"^
"Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash"^
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume that a ; is needed at the end of Get-FileHash.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

even if it is to avoid, will add to be consistent with existing PS code....

Copy link
Member

@slawekjaranowski slawekjaranowski left a comment

Choose a reason for hiding this comment

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

I don't have a windows system .... so can not check

@cstamas cstamas merged commit 3418360 into master Apr 17, 2024
@cstamas cstamas deleted the MWRAPPER-103-take2 branch April 17, 2024 18:20
@jira-importer
Copy link

Resolve #292

1 similar comment
@jira-importer
Copy link

Resolve #292

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.

5 participants