From df6f49da3e95a232ba7cf3f80dc28c7ee936c3dd Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Mon, 26 Jul 2021 18:32:34 +0200 Subject: [PATCH] main: preserve env - sudo --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"