main: pass PATH to sudo

This commit is contained in:
Dawid Dziurla 2021-07-26 18:25:55 +02:00 committed by GitHub
parent 03f941b221
commit 163a4d1959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ async function main() {
} }
if (sudo) { if (sudo) {
cmd.unshift("sudo") cmd.unshift("sudo", "env", `PATH=${process.env.PATH}`)
} }
process.env.ANSIBLE_FORCE_COLOR = "True" process.env.ANSIBLE_FORCE_COLOR = "True"