Skip to content

Fix: Add better separator for hosts to avoid host skipping. #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stefaro
Copy link

@stefaro stefaro commented Nov 5, 2024

I found that this was skipping some hosts configurations that I had (i have ~300 hosts) .
By making record separator more specific I got it working in a more reliable way.
Separating records by @@ before each host declaration seems to work nicely and it AFAIK shouldn't collide with any other configuration thing easily. For modifiying the ssh_configuration i used sed with regex s/[ \t]*host, which should make the addition safely and in at least realitvely compatible way for different sed implementations.

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.

1 participant