summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index aa0614195..0d26836d9 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1656,7 +1656,9 @@ for myarg in ${EBUILD_SH_ARGS} ; do
done
# Save the env only for relevant phases.
-if [ -n "$myarg" ] && [ "$myarg" != "clean" ]; then
+if [ -n "${myarg}" ] && \
+ [ "${myarg}" != "clean" ] && \
+ [ "${myarg}" != "help" ] ; then
# Do not save myarg in the env, or else the above [ -n "$myarg" ] test will
# give a false positive when ebuild.sh is sourced.
unset myarg