windows: use forwards slashes whem importing key on domain account. #1263
This commit is contained in:
parent
43ee6b7815
commit
3e191c0ec2
|
@ -61,6 +61,10 @@ namespace SparkleShare {
|
|||
|
||||
public static void ImportPrivateKey (string key_file_path)
|
||||
{
|
||||
// Use forward slashes when dealing with Windows domain accounts
|
||||
if (key_file_path.StartsWith ("\\\\"))
|
||||
key_file_path = key_file_path.Replace ("\\", "/");
|
||||
|
||||
SparkleKeyProcess process = new SparkleKeyProcess ("ssh-add", "\"" + key_file_path + "\"");
|
||||
process.Start ();
|
||||
process.WaitForExit ();
|
||||
|
|
Loading…
Reference in a new issue