Clean up blank lines and orphaned comments in PATH config files#454
Merged
Clean up blank lines and orphaned comments in PATH config files#454
Conversation
When jDeploy installs/uninstalls CLI commands, it adds and removes PATH entries from .zshrc/.bashrc. Over repeated cycles, this left behind accumulating blank lines and orphaned "# Added by jDeploy installer" comments (not followed by an export line). Three fixes in UnixPathManager: - removePathFromConfigFile: collapse 3+ consecutive blank lines to one - removePathFromConfigFile: remove orphaned jDeploy comments (not followed by an export PATH line) - addPathToConfigFile: trim trailing whitespace before appending new entry, preventing blank line accumulation https://claude.ai/code/session_01D3Pey4PcNjGphHHbbADRdC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Improves the handling of PATH configuration files by cleaning up excessive blank lines and removing orphaned jDeploy installer comments during both add and remove operations.
Key Changes
Implementation Details
https://claude.ai/code/session_01D3Pey4PcNjGphHHbbADRdC