From 89b8a8bf85939e6e6fbed3cd3bf77a3cf716b8e2 Mon Sep 17 00:00:00 2001 From: Ahmad Sharif Date: Fri, 21 Sep 2012 20:12:45 -0700 Subject: [PATCH] update_chroot: pass env vars to cros_setup_toolchain. BUG=chromium-os:33007 TEST=remote trybot (chromiumos-sdk) with this CL. Change-Id: If8a0de45eebf158bfc51aa87348b3c96c6c2626e Reviewed-on: https://gerrit.chromium.org/gerrit/33848 Reviewed-by: Zdenek Behan Reviewed-by: Mike Frysinger Commit-Ready: asharif Tested-by: asharif --- update_chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_chroot b/update_chroot index f3897c8832..d6d0367a52 100755 --- a/update_chroot +++ b/update_chroot @@ -95,7 +95,7 @@ if [ "${FLAGS_skip_toolchain_update}" -eq "${FLAGS_FALSE}" ]; then TOOLCHAIN_FLAGS+=( --nousepkg ) fi # Expand the path before sudo, as root doesn't have the same path magic. - sudo $(type -p cros_setup_toolchains) "${TOOLCHAIN_FLAGS[@]}" + sudo -E $(type -p cros_setup_toolchains) "${TOOLCHAIN_FLAGS[@]}" fi # Build cros_workon packages when they are changed.