From e9048d51803cec5e3cbb87ac962c5481f4d924a5 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Tue, 20 Dec 2011 17:47:39 +0100 Subject: [PATCH] config: don't add identity to .ssh/config twice --- SparkleLib/SparkleConfig.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SparkleLib/SparkleConfig.cs b/SparkleLib/SparkleConfig.cs index fb68fc07..305827a9 100755 --- a/SparkleLib/SparkleConfig.cs +++ b/SparkleLib/SparkleConfig.cs @@ -169,7 +169,7 @@ namespace SparkleLib { string ssh_config_path = Path.Combine (path, ".ssh"); string ssh_config_file_path = SparkleHelpers.CombineMore (path, ".ssh", "config"); string ssh_config = "IdentityFile " + - Path.Combine (SparkleConfig.ConfigPath, "sparkleshare." + User.Email + ".key\n"); + Path.Combine (SparkleConfig.ConfigPath, "sparkleshare." + User.Email + ".key"); if (!Directory.Exists (ssh_config_path)) Directory.CreateDirectory (ssh_config_path); @@ -187,7 +187,7 @@ namespace SparkleLib { ssh_config = "\n\n# SparkleShare's key\n" + ssh_config; TextWriter writer = File.AppendText (ssh_config_file_path); - writer.Write (ssh_config); + writer.Write (ssh_config + "\n"); writer.Close (); } else {