we want to completely remove this folder; add some hack to avoid staying in non-existen directory what might lead in getcwd() errors

This commit is contained in:
belliash 2012-01-13 19:32:47 +01:00
vecāks 99bbad5df4
revīzija 792ba3f6b8
1 mainīti faili ar 3 papildinājumiem un 1 dzēšanām

Parādīt failu

@ -129,6 +129,7 @@ function mergeOverlay() {
local FTS="${4}"
local ORW="${5}"
local SRC="${1}"
local TOPDIR="$(pwd)"
makeCleanDirectory ${TRASHDIR}/ebuilds || return 1
cd ${SRC}
saveIFS ","
@ -167,7 +168,8 @@ function mergeOverlay() {
done < <(find * -maxdepth 0)
cd ..
done < <(find * -maxdepth 0 -type d)
rm -rf ${TRASHDIR}/ebuilds/*
cd ${TOPDIR}
rm -rf ${TRASHDIR}/ebuilds
return 0
}