private bool CheckGitExe()
{
GitBinFound.Visible = true;
if (!File.Exists(GitCommands.Settings.GitBinDir + "sh.exe") && !File.Exists(GitCommands.Settings.GitBinDir + "sh") &&
!CheckIfFileIsInPath("sh.exe") && !CheckIfFileIsInPath("sh"))
{
GitBinFound.BackColor = Color.LightSalmon;
GitBinFound.Text = "Linux tools (sh) not found. To solve this problem you can set the correct path in settings.";
return false;
}
GitBinFound.BackColor = Color.LightGreen;
GitBinFound.Text = "Linux tools (sh) found on your computer.";
return true;
}