ssh: Fix whitespace

This commit is contained in:
Hylke Bons 2018-03-10 12:26:24 +00:00
parent dd0e3d36f7
commit 45f91bbacd
2 changed files with 18 additions and 16 deletions

View file

@ -25,17 +25,17 @@ namespace Sparkles {
public static string SSHCommandPath {
get {
return Path.Combine(SSHPath, "ssh").Replace("\\", "/");
return Path.Combine (SSHPath, "ssh").Replace ("\\", "/");
}
}
public SSHCommand(string command, string args) : this (command, args, null)
public SSHCommand (string command, string args) : this (command, args, null)
{
}
public SSHCommand(string command, string args, SSHAuthenticationInfo auth_info) :
public SSHCommand (string command, string args, SSHAuthenticationInfo auth_info) :
base (Path.Combine (SSHPath, command), args)
{
}

View file

@ -25,6 +25,7 @@ namespace Sparkles {
public static string SSHKeyScan = "ssh-keyscan";
protected SSHFetcher (SparkleFetcherInfo info) : base (info)
{
}
@ -116,11 +117,12 @@ namespace Sparkles {
byte [] sha256_bytes = sha256.ComputeHash (base64_bytes);
string fingerprint = BitConverter.ToString (sha256_bytes);
Console.WriteLine( fingerprint.ToLower ().Replace ("-", ":"));
return fingerprint.ToLower ().Replace ("-", ":");
fingerprint = fingerprint.ToLower ().Replace ("-", ":");
return fingerprint;
} catch (Exception e) {
Logger.LogInfo ("Fetcher", "Failed to create fingerprint: " + e.Message + " " + e.StackTrace);
Logger.LogInfo ("Fetcher", "Failed to create fingerprint: ", e);
return null;
}
}