summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index c4cf610f1..b5a581c31 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -725,7 +725,7 @@ dyn_clean() {
if ! hasq keeptemp $FEATURES; then
rm -rf "${T}"
else
- mv "${T}/environment" "${T}/environment.keeptemp"
+ [ -e "${T}/environment ] && mv "${T}/environment" "${T}/environment.keeptemp"
fi
if ! hasq keepwork $FEATURES; then