oops, that should be == -1
This commit is contained in:
parent
88ce8218b2
commit
3cc96d2e4d
|
@ -48,7 +48,7 @@ public class SparklePony {
|
||||||
Process.StartInfo.UseShellExecute = false;
|
Process.StartInfo.UseShellExecute = false;
|
||||||
Process.StartInfo.FileName = "git";
|
Process.StartInfo.FileName = "git";
|
||||||
Process.Start();
|
Process.Start();
|
||||||
if (Process.StandardOutput.ReadToEnd().IndexOf ("version") > -1) {
|
if (Process.StandardOutput.ReadToEnd().IndexOf ("version") == -1) {
|
||||||
Console.WriteLine ("Git wasn't found.\nYou can get it from http://git-scm.com/.");
|
Console.WriteLine ("Git wasn't found.\nYou can get it from http://git-scm.com/.");
|
||||||
Environment.Exit (0);
|
Environment.Exit (0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue