mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3744 from ethereum/useUsrBinEditor
Use /usr/bin/editor if exists.
This commit is contained in:
commit
8fd53c1c03
@ -265,6 +265,8 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
if (getenv("EDITOR"))
|
if (getenv("EDITOR"))
|
||||||
SyntaxTestTool::editor = getenv("EDITOR");
|
SyntaxTestTool::editor = getenv("EDITOR");
|
||||||
|
else if (fs::exists("/usr/bin/editor"))
|
||||||
|
SyntaxTestTool::editor = "/usr/bin/editor";
|
||||||
|
|
||||||
fs::path testPath;
|
fs::path testPath;
|
||||||
bool formatted = true;
|
bool formatted = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user