Skip to content

Commit

Permalink
config: don't add identity to .ssh/config twice
Browse files Browse the repository at this point in the history
  • Loading branch information
hbons committed Dec 20, 2011
1 parent 53db526 commit 4af4aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SparkleLib/SparkleConfig.cs
Expand Up @@ -169,7 +169,7 @@ private void ConfigureSSH ()
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);
Expand All @@ -187,7 +187,7 @@ private void ConfigureSSH ()
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 {
Expand Down

0 comments on commit 4af4aca

Please sign in to comment.