ssh: Fix whitespace
This commit is contained in:
parent
dd0e3d36f7
commit
45f91bbacd
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue