summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 35b940bfb..00600473b 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1525,10 +1525,9 @@ _ebuild_phase_funcs() {
# function for the current phase.
#
source_all_bashrcs() {
- [ -n "$EBUILD_PHASE" ] || return
local x
- if [[ -n $EAPI ]] ; then
+ if [[ -n $EBUILD_PHASE && -n $EAPI ]] ; then
local phase_func=$(_ebuild_arg_to_phase "$EAPI" $EBUILD_PHASE)
[[ -n $phase_func ]] && _ebuild_phase_funcs "$EAPI" $phase_func
fi