mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-28 05:36:34 +00:00
patch: fix getuid for ts
This commit is contained in:
parent
8714208762
commit
fde8354757
@ -30,7 +30,7 @@ const adapters: Adapter[] = [
|
|||||||
|
|
||||||
// Can't use permissions.isElevated() here as it returns a promise and we need to set
|
// Can't use permissions.isElevated() here as it returns a promise and we need to set
|
||||||
// module.exports = scanner right now.
|
// module.exports = scanner right now.
|
||||||
if (platform !== 'linux' || geteuid() === 0) {
|
if (platform !== 'linux' || (geteuid && geteuid() === 0)) {
|
||||||
adapters.push(new UsbbootDeviceAdapter());
|
adapters.push(new UsbbootDeviceAdapter());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user