Created
October 28, 2020 21:49
-
-
Save isaacs/b1ea5a0dd6a9565f929cfbfdc9eb3a48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!isRoot) { | |
return promiseSpawnUid(cmd, args, { | |
...opts, | |
cwd, | |
uid: undefined, | |
gid: undefined, | |
}, extra) | |
} | |
const {uid, gid} = inferOwner.sync(cwd) | |
return promiseSpawnUid(cmd, args, { | |
...opts, | |
cwd, | |
uid, | |
gid, | |
}, extra) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment