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
commit 8fd53c1c03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;