Merge pull request #3744 from ethereum/useUsrBinEditor

Use /usr/bin/editor if exists.
This commit is contained in:
Alex Beregszaszi
2018-03-21 15:28:21 +00:00
committed by GitHub
+2
View File
@@ -265,6 +265,8 @@ int main(int argc, char *argv[])
{
if (getenv("EDITOR"))
SyntaxTestTool::editor = getenv("EDITOR");
else if (fs::exists("/usr/bin/editor"))
SyntaxTestTool::editor = "/usr/bin/editor";
fs::path testPath;
bool formatted = true;