mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-25 12:16:37 +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
|
||||
// module.exports = scanner right now.
|
||||
if (platform !== 'linux' || geteuid() === 0) {
|
||||
if (platform !== 'linux' || (geteuid && geteuid() === 0)) {
|
||||
adapters.push(new UsbbootDeviceAdapter());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user