mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +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 Reviewers: rash67, aran, jungejason CC: Differential Revision: 43
This commit is contained in:
parent
d01dc4df37
commit
f1b2cfa3f6
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue