mirror of
https://github.com/coder/code-server.git
synced 2024-12-25 02:33:34 +03:00
Fix darwin detection
This commit is contained in:
parent
ece840834d
commit
f133b00851
@ -99,7 +99,7 @@ class Builder {
|
||||
*/
|
||||
private async target(): Promise<"darwin" | "alpine" | "linux"> {
|
||||
if (!this._target) {
|
||||
if (process.env.OSTYPE && /^darwin/.test(process.env.OSTYPE)) {
|
||||
if (os.platform() === "darwin" || (process.env.OSTYPE && /^darwin/.test(process.env.OSTYPE))) {
|
||||
this._target = "darwin";
|
||||
} else {
|
||||
// Alpine's ldd doesn't have a version flag but if you use an invalid flag
|
||||
|
Loading…
Reference in New Issue
Block a user