Skip to content

Commit 2f5956a

Browse files
Fix code that processes lines in /etc/os-release to remove whitespace
1 parent feb7a17 commit 2f5956a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export function getSupportedPlatform() {
3535

3636
function getValue(name: string) {
3737
for (let line of lines) {
38+
line = line.trim();
3839
if (line.startsWith(name)) {
3940
const equalsIndex = line.indexOf('=');
4041
if (equalsIndex >= 0) {

0 commit comments

Comments
 (0)