CloudShell icon indicating copy to clipboard operation
CloudShell copied to clipboard

Fix PowerShell profile casing

Open JustinGrote opened this issue 2 years ago • 5 comments

The powershell profile folders have incorrect casing (PowerShell instead of powershell) to the powershell default, and cause problems with scripts that interact with them. This PR fixes the casing.

Related Discussion: https://github.com/Azure/CloudShell/discussions/302

JustinGrote avatar Mar 27 '23 17:03 JustinGrote

@JustinGrote - thank you for this pr. Hey Justin - @bhavanakonchada and I are reviewing the change - Justin, can you change the conditional to the following logic?

If lowercase only exists - do nothing If Pascal case only exists - rename to lowercase and add symlink PowerShell -> powershell If both cases exists - do nothing since fix is already in

theJasonHelmick avatar Apr 03 '23 17:04 theJasonHelmick

@JustinGrote - thank you for this pr. Hey Justin - @bhavanakonchada and I are reviewing the change - Justin, can you change the conditional to the following logic?

If lowercase only exists - do nothing If Pascal case only exists - rename to lowercase and add symlink PowerShell -> powershell If both cases exists - do nothing since fix is already in

Adding to what @theJasonHelmick said, we need this change to avoid any disruption for existing customers as a lot could be riding on this path.

bhavanakonchada avatar Apr 03 '23 17:04 bhavanakonchada

@bhavanakonchada @theJasonHelmick I added migration logic as appropriate and tried to handle all possible edge cases, I did not do this transparently as users should be informed what is going on.

JustinGrote avatar Apr 03 '23 18:04 JustinGrote

Thank you @JustinGrote - much appreciated. Will review with @bhavanakonchada with the plan to accept the PR after testing.

theJasonHelmick avatar Apr 10 '23 16:04 theJasonHelmick

Thank you @JustinGrote - much appreciated. Will review with @bhavanakonchada with the plan to accept the PR after testing.

I've delayed the review and merge of the PR to October 2023 post feature release for Ephemeral and UX2. Thank you for this fix - looking forward to have it included soon. WE may need to adjust the code for our own purposes, but the credit goes to you @JustinGrote for the catch and code. Thank you!

theJasonHelmick avatar Sep 27 '23 16:09 theJasonHelmick