diff --git a/main.js b/main.js index 29893ef..ce4f993 100644 --- a/main.js +++ b/main.js @@ -83,7 +83,7 @@ async function main() { } if (sudo) { - cmd.unshift("sudo", "env", `PATH=${process.env.PATH}`) + cmd.unshift("sudo", "-E", "env", `PATH=${process.env.PATH}`) } process.env.ANSIBLE_FORCE_COLOR = "True"