mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Make 'arc' work for users without the POSIX PHP installed.
Summary: Some PHP installs don't have this by default. Do a conditional check since this functionality is noncritical. Test Plan: will make srash test Differential Revision: 43 Reviewed By: aran Reviewers: rash67, aran, jungejason CC: aran
This commit is contained in:
parent
d01dc4df37
commit
a7cbae1dc6
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ foreach ($args as $key => $arg) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!posix_isatty(STDOUT)) {
|
// The POSIX extension is not available by default in some PHP installs.
|
||||||
|
if (function_exists('posix_isatty') && !posix_isatty(STDOUT)) {
|
||||||
PhutilConsoleFormatter::disableANSI(true);
|
PhutilConsoleFormatter::disableANSI(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue