node: detect root via Process.uid

This commit is contained in:
Dawid Dziurla 2020-02-28 13:36:29 +01:00
parent 79a1500f2b
commit aac200a53d
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -50,7 +50,7 @@ module Language
#{Dir.pwd}/#{pack}
]
args << "--unsafe-perm" if ENV["USER"] == "root"
args << "--unsafe-perm" if Process.uid.zero?
args
end