summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-12-04 17:52:37 -0800
committerZac Medico <zmedico@gentoo.org>2011-12-04 17:52:37 -0800
commitd15c3ac976b7d95d5b1cd29c3ae0e51ab9971022 (patch)
tree8e524b491083b2f08b16d2f4336581e8a343465f /bin/ebuild.sh
parent49795425003ada6457a780ecef599ae6e507ad79 (diff)
downloadportage-d15c3ac976b7d95d5b1cd29c3ae0e51ab9971022.tar.gz
portage-d15c3ac976b7d95d5b1cd29c3ae0e51ab9971022.tar.bz2
portage-d15c3ac976b7d95d5b1cd29c3ae0e51ab9971022.zip
ebuild.sh: quote sandbox export args
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index f39e5362a..1bef43f33 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -465,7 +465,7 @@ if ! has "$EBUILD_PHASE" clean cleanrm depend && \
die "error processing environment"
# Colon separated SANDBOX_* variables need to be cumulative.
for x in SANDBOX_DENY SANDBOX_READ SANDBOX_PREDICT SANDBOX_WRITE ; do
- export PORTAGE_${x}=${!x}
+ export PORTAGE_${x}="${!x}"
done
PORTAGE_SANDBOX_ON=${SANDBOX_ON}
export SANDBOX_ON=1
@@ -479,13 +479,13 @@ if ! has "$EBUILD_PHASE" clean cleanrm depend && \
for x in SANDBOX_DENY SANDBOX_PREDICT SANDBOX_READ SANDBOX_WRITE ; do
y="PORTAGE_${x}"
if [ -z "${!x}" ] ; then
- export ${x}=${!y}
+ export ${x}="${!y}"
elif [ -n "${!y}" ] && [ "${!y}" != "${!x}" ] ; then
# filter out dupes
- export ${x}=$(printf "${!y}:${!x}" | tr ":" "\0" | \
- sort -z -u | tr "\0" ":")
+ export ${x}="$(printf "${!y}:${!x}" | tr ":" "\0" | \
+ sort -z -u | tr "\0" ":")"
fi
- export ${x}=${!x%:}
+ export ${x}="${!x%:}"
unset PORTAGE_${x}
done
unset x y