fix(update/uninstall): Remove items from PATH correctly #5833
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Remove PATH correctly.
env_rm_path
...\current
instead of...\x.x.x
during updatingMotivation and Context
Relates to #4550
How Has This Been Tested?
Before:
![image](https://private-user-images.githubusercontent.com/5832170/314406386-b0602710-fb10-46d9-89e5-6709c6f01c65.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODE1MDUsIm5iZiI6MTczOTI4MTIwNSwicGF0aCI6Ii81ODMyMTcwLzMxNDQwNjM4Ni1iMDYwMjcxMC1mYjEwLTQ2ZDktODllNS02NzA5YzZmMDFjNjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTM0MDA1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWJlZDkyYjY1MDgxMWI0ZWJmZjdjZDE5NjQ4ZGJmOTk2MDI4ZjYwN2FmODgxZjllODc1OTlmY2RiYzE5Y2ZiMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.cQQTf22wf2PRTs7b5nx0drHDo-5gLXTKU5OmO8AIWTs)
After:
![image](https://private-user-images.githubusercontent.com/5832170/314406369-803d07e8-7d2c-4c11-bb40-35bce76d3433.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODE1MDUsIm5iZiI6MTczOTI4MTIwNSwicGF0aCI6Ii81ODMyMTcwLzMxNDQwNjM2OS04MDNkMDdlOC03ZDJjLTRjMTEtYmI0MC0zNWJjZTc2ZDM0MzMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTM0MDA1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDg4Yjk0NDZhMjAwMzU0NTc4YjUwNGY3NTIyNDVmNTFmMWFhODU0YWUxYWQzY2NmMjFjOTM1ZWUwZDU1NDM3MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.gH8Lcw1BWa0ZR6qAWAZ7DSIL5I64fY00BYaVGCYldB4)
Checklist:
develop
branch.