oops, that should be == -1

This commit is contained in:
Hylke Bons 2010-04-27 21:47:23 +01:00
parent 88ce8218b2
commit 3cc96d2e4d

View file

@ -48,7 +48,7 @@ public class SparklePony {
Process.StartInfo.UseShellExecute = false;
Process.StartInfo.FileName = "git";
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/.");
Environment.Exit (0);
}