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.
2 parents 653252a + d86c83e commit 15681e0Copy full SHA for 15681e0
src/utils.ts
@@ -26,7 +26,7 @@ export function getSupportedPlatform() {
26
}
27
else if (process.platform === 'linux') {
28
// Get the text of /etc/*-release to discover which Linux distribution we're running on.
29
- let release = child_process.execSync('cat /etc/*-release').toString().toLowerCase();
+ let release = child_process.execSync('cat /etc/os-release').toString().toLowerCase();
30
31
if (release.indexOf('ubuntu') >= 0) {
32
return SupportedPlatform.Ubuntu;
@@ -43,4 +43,4 @@ export function getSupportedPlatform() {
43
44
45
return SupportedPlatform.None;
46
-}
+}
0 commit comments