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
부모 99bbad5df4
커밋 792ba3f6b8
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -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
}