libem.bash: really cleanup src in em.cleanup_src()

This commit is contained in:
2014-04-29 15:03:42 +02:00
parent cc8329fbf3
commit 390c900657

View File

@@ -388,12 +388,10 @@ function _cleanup_build() {
function em.cleanup_src() {
(
[[ -d /${EM_SRCDIR} ]] || return 0
cd "/${EM_SRCDIR}";
cd "/${EM_SRCDIR}/..";
if [[ $(pwd) != / ]]; then
echo "Cleaning up $(pwd)"
rm -rf *
cd ..
rmdir "/${EM_SRCDIR}"
rm -rf ${EM_SRCDIR##*/}
fi
);
}