Commit 390c9006 authored by gsell's avatar gsell
Browse files

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

parent cc8329fb
......@@ -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
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment