We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e1802 commit b974d1dCopy full SHA for b974d1d
packages/@postgrestools/postgrestools/bin/postgrestools
@@ -21,19 +21,21 @@ const PLATFORMS = {
21
};
22
23
function isMusl() {
24
- let stderr;
+ let stdout;
25
try {
26
- stderr = execSync("ldd --version", {
+ stdout = execSync("ldd --version", {
27
stdio: [
28
"ignore", // stdin
29
"pipe", // stdout – glibc systems print here
30
"pipe", // stderr – musl systems print here
31
],
32
});
33
} catch (err) {
34
- stderr = err.stderr;
+ if (typeof err === "object" && err !== null && "stderr" in err) {
35
+ stdout = err.stderr;
36
+ }
37
}
- if (stderr?.indexOf("musl") > -1) {
38
+ if (typeof stdout === 'string' && stdout?.indexOf("musl") > -1) {
39
return true;
40
41
return false;
0 commit comments