From e01e913d80dcbd509a003feb55c7cdb6fc9758c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Thu, 9 Oct 2014 14:54:22 -0700 Subject: [PATCH] Add -E flag to sudo (fixes #8494) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docker-DCO-1.1-Signed-off-by: Jérôme Petazzoni (github: jpetazzo) --- hack/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/install.sh b/hack/install.sh index e4dfb8039b..bd45efd720 100755 --- a/hack/install.sh +++ b/hack/install.sh @@ -42,7 +42,7 @@ user="$(id -un 2>/dev/null || true)" sh_c='sh -c' if [ "$user" != 'root' ]; then if command_exists sudo; then - sh_c='sudo sh -c' + sh_c='sudo -E sh -c' elif command_exists su; then sh_c='su -c' else