Skip to content

Commit d4f53d9

Browse files
system() added uuid freebsd
1 parent ef5286e commit d4f53d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/system.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function system(callback) {
124124
try {
125125
const lines = execSync('sysctl -i kern.hostuuid kern.hostid', util.execOptsLinux).toString().split('\n');
126126
result.uuid = util.getValue(lines, 'kern.hostuuid', ':').toLowerCase();
127-
if (!result.serial) {
127+
if (!result.serial || result.serial === '-') {
128128
result.serial = util.getValue(lines, 'kern.hostid', ':').toLowerCase();
129129
}
130130
} catch (e) {

0 commit comments

Comments
 (0)