Skip to content

Commit ea83d03

Browse files
authored
Merge pull request #736 from kamszyc/patch-1
Add Linux Mint 18 case to switch statement
2 parents bdd4dca + b7a41cc commit ea83d03

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/platform.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,17 @@ export function getCurrentPlatform() {
9393
return Platform.Ubuntu16;
9494
}
9595

96+
break;
97+
case 'linuxmint':
98+
const lmVersionId = getValue("VERSION_ID");
99+
if (lmVersionId.startsWith("18")) {
100+
// Linux Mint 18 is binary compatible with Ubuntu 16.04
101+
return Platform.Ubuntu16;
102+
}
103+
96104
break;
97105
}
98106
}
99107

100108
return Platform.Unknown;
101-
}
109+
}

0 commit comments

Comments
 (0)