summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-12-19 13:57:50 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-12-19 13:57:50 -0300
commit513c5bd2a6c5569daae8c9b84413f3b85b05cae1 (patch)
treeb79c19c9ba05d9f3869c129d48f74a6f9afbec90
parentc74d072dc83c5e3b3d9462678884cd0411a7d1d0 (diff)
Get env vars on sudo
-rwxr-xr-xtreepkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/treepkg b/treepkg
index 8c4cc8e..ee4964d 100755
--- a/treepkg
+++ b/treepkg
@@ -209,7 +209,7 @@ if [ ${DEPTH} -eq 0 ]; then
# Run build command
pushd "${BUILDDIR}/${_pkg}" >/dev/null
- sudo pacman -Syu --noconfirm
+ sudo -E pacman -Syu --noconfirm
${HOOKPREBUILD}