Skip to content

Commit

Permalink
Add -E flag to sudo (fixes moby#8494)
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Jérôme Petazzoni <jerome@docker.com> (github: jpetazzo)
  • Loading branch information
jpetazzo committed Oct 9, 2014
1 parent 2f5f437 commit e01e913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e01e913

Please sign in to comment.