Skip to content

Fix folder name extraction in ConnectorPackageValidator script#4110

Open
tomburger wants to merge 1 commit intomicrosoft:devfrom
GlaassSoftware:3752-fixing-folder-name
Open

Fix folder name extraction in ConnectorPackageValidator script#4110
tomburger wants to merge 1 commit intomicrosoft:devfrom
GlaassSoftware:3752-fixing-folder-name

Conversation

@tomburger
Copy link
Copy Markdown
Contributor

Summary

Fixing the validation script ConnectorPackageValidator.ps1, which is failing when used with PowerShell Core on Windows.

Details

When getting name of the folder pkgAsset the extraction of the name is missing and full path, including drive name is used. That leads to the error.

Most likely it used to work with Windows PowerShell, where object returned by Get-ChildItem resolved itself into just a name of the directory. And now it resolves into the full path. So adding Select-Object to explicitly select name only (like it was one on two other occasions in the same script just a few lines above) fixes the problem.

See issue #3752 for more details.

@vmanoharas
Copy link
Copy Markdown
Contributor

Hi @tomburger,

Thank you for updating this script file. However, this script is handled by MS, we will update from our end. Kindly close this PR.

@tomburger
Copy link
Copy Markdown
Contributor Author

Hi @vmanoharas,
I will keep the PR here for now so you know how to fix it.
Once fixed and bug closed, I will happily disregard it.
Tom

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