only move $T/environment if it exists; bug 64926
authorSimon Stelling <blubb@gentoo.org>
Sat, 15 Apr 2006 12:08:51 +0000 (12:08 -0000)
committerSimon Stelling <blubb@gentoo.org>
Sat, 15 Apr 2006 12:08:51 +0000 (12:08 -0000)
svn path=/main/trunk/; revision=3151

bin/ebuild.sh

index c4cf610f117c7eed7080c6ee5ed1d189180dcc4c..b5a581c3195d318cf16fa0e6cd4afc75269a84f9 100755 (executable)
@@ -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