Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[MWRAPPER-103] Apply recommended workaround#132

Merged
cstamas merged 3 commits into
masterfrom
MWRAPPER-103-take2
Apr 17, 2024
Merged

[MWRAPPER-103] Apply recommended workaround#132
cstamas merged 3 commits into
masterfrom
MWRAPPER-103-take2

Conversation

@cstamas
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

Resolve #292

1 similar comment
@jira-importer
Copy link
Copy Markdown

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