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
ssh_authorize duplicates keys #13
Comments
Hm, this is weird -- |
It might be time to write some test cases -- will investigate that, thanks! |
Good idea! it's always the time for tests :) |
Tests would be great. :) I agree it looks right, but it results in duplicate lines. :/ I'm going to see if I can fix it in my fork--I've got some other fixes that I'd like to send in a pull request eventually. |
That would be amazing, thanks. |
Fixed in 40f1fc8 |
I would expect
ssh_authorize
to be idempotent, but running it repeatedly results in duplicate keys in.ssh/authorized_keys
.I attempted to rewrite it using something like
file_update(keyf, lambda _: text_ensure_line(_, key))
but this produces duplicate lines as well.The text was updated successfully, but these errors were encountered: