Skip to content

Commit 355d0e7

Browse files
John Kleinschmidtmalept
John Kleinschmidt
authored andcommitted
fix: use armv7l if process.config.variable.arm_version is undefined (#128)
1 parent 790db6a commit 355d0e7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/utils.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ export function getNodeArch(arch: string) {
6464
case '6':
6565
return uname();
6666
case '7':
67-
return 'armv7l';
6867
default:
69-
break;
68+
return 'armv7l';
7069
}
7170
}
7271

test/utils.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('utils', () => {
9797
value: 'arm',
9898
});
9999
process.config.variables = {} as any;
100-
expect(getHostArch()).toEqual('arm');
100+
expect(getHostArch()).toEqual('armv7l');
101101
});
102102

103103
it('should return uname on arm 6', () => {

0 commit comments

Comments
 (0)