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

Cette révision appartient à :
belliash 2012-01-13 19:32:47 +01:00
Parent 99bbad5df4
révision 792ba3f6b8
1 fichiers modifiés avec 3 ajouts et 1 suppressions

Voir le fichier

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