mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
Merge pull request #25818 from jammerful/ssh
ssh: Add Newline to KnownHostsText
This commit is contained in:
commit
2e966dc167
|
@ -20,11 +20,11 @@ let
|
|||
|
||||
knownHosts = map (h: getAttr h cfg.knownHosts) (attrNames cfg.knownHosts);
|
||||
|
||||
knownHostsText = flip (concatMapStringsSep "\n") knownHosts
|
||||
knownHostsText = (flip (concatMapStringsSep "\n") knownHosts
|
||||
(h: assert h.hostNames != [];
|
||||
concatStringsSep "," h.hostNames + " "
|
||||
+ (if h.publicKey != null then h.publicKey else readFile h.publicKeyFile)
|
||||
);
|
||||
)) + "\n";
|
||||
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue