diff --git a/lib/util/drive-scanner.ts b/lib/util/drive-scanner.ts index 84a1af3f..49ff0441 100644 --- a/lib/util/drive-scanner.ts +++ b/lib/util/drive-scanner.ts @@ -30,7 +30,7 @@ const adapters: Adapter[] = [ // Can't use permissions.isElevated() here as it returns a promise and we need to set // module.exports = scanner right now. -if (platform !== 'linux' || geteuid() === 0) { +if (platform !== 'linux' || (geteuid && geteuid() === 0)) { adapters.push(new UsbbootDeviceAdapter()); }