fix reversion
In 793ddecd4b
, writeSshConfig was made to
writeFile a ByteString, which lost the newline conversion on Windows.
Added linesFile to fix it. This will also be useful for other writeFile
conversions.
This commit is contained in:
parent
7a94ba1bf2
commit
de1af273e0
2 changed files with 20 additions and 2 deletions
|
@ -145,7 +145,7 @@ changeUserSshConfig modifier = do
|
|||
|
||||
writeSshConfig :: OsPath -> String -> IO ()
|
||||
writeSshConfig f s = do
|
||||
F.writeFile' f (encodeBS s)
|
||||
F.writeFile' f (linesFile' (encodeBS s))
|
||||
setSshConfigMode (fromOsPath f)
|
||||
|
||||
{- Ensure that the ssh config file lacks any group or other write bits,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue