Fix alpine check
This commit is contained in:
parent
2458cde498
commit
76f6ff4145
@ -106,7 +106,7 @@ class Builder {
|
|||||||
// (like --version) it outputs the version to stderr and exits with 1.
|
// (like --version) it outputs the version to stderr and exits with 1.
|
||||||
const result = await util.promisify(cp.exec)("ldd --version")
|
const result = await util.promisify(cp.exec)("ldd --version")
|
||||||
.catch((error) => ({ stderr: error.message, stdout: "" }));
|
.catch((error) => ({ stderr: error.message, stdout: "" }));
|
||||||
if (/^musl/.test(result.stderr) || /^musl/.test(result.stdout)) {
|
if (/musl/.test(result.stderr) || /musl/.test(result.stdout)) {
|
||||||
this._target = "alpine";
|
this._target = "alpine";
|
||||||
} else {
|
} else {
|
||||||
this._target = "linux";
|
this._target = "linux";
|
||||||
@ -130,8 +130,8 @@ class Builder {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if it looks like we're inside VS Code. This is used to prevent
|
* Return true if it looks like we're inside VS Code. This is used to prevent
|
||||||
* accidentally building inside while developing or to prevent trying to run
|
* accidentally building inside VS Code while developing which causes issues
|
||||||
* `yarn` in VS Code when we aren't in VS Code.
|
* because the watcher will try compiling those built files.
|
||||||
*/
|
*/
|
||||||
private isInVscode(pathToCheck: string): boolean {
|
private isInVscode(pathToCheck: string): boolean {
|
||||||
let inside = false;
|
let inside = false;
|
||||||
|
@ -130,7 +130,7 @@ export class UpdateService extends AbstractUpdateService {
|
|||||||
stderr: error.message,
|
stderr: error.message,
|
||||||
stdout: "",
|
stdout: "",
|
||||||
}));
|
}));
|
||||||
if (/^musl/.test(result.stderr) || /^musl/.test(result.stdout)) {
|
if (/musl/.test(result.stderr) || /musl/.test(result.stdout)) {
|
||||||
target = "alpine";
|
target = "alpine";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user