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:
parent
99bbad5df4
commit
792ba3f6b8
|
@ -129,6 +129,7 @@ function mergeOverlay() {
|
||||||
local FTS="${4}"
|
local FTS="${4}"
|
||||||
local ORW="${5}"
|
local ORW="${5}"
|
||||||
local SRC="${1}"
|
local SRC="${1}"
|
||||||
|
local TOPDIR="$(pwd)"
|
||||||
makeCleanDirectory ${TRASHDIR}/ebuilds || return 1
|
makeCleanDirectory ${TRASHDIR}/ebuilds || return 1
|
||||||
cd ${SRC}
|
cd ${SRC}
|
||||||
saveIFS ","
|
saveIFS ","
|
||||||
|
@ -167,7 +168,8 @@ function mergeOverlay() {
|
||||||
done < <(find * -maxdepth 0)
|
done < <(find * -maxdepth 0)
|
||||||
cd ..
|
cd ..
|
||||||
done < <(find * -maxdepth 0 -type d)
|
done < <(find * -maxdepth 0 -type d)
|
||||||
rm -rf ${TRASHDIR}/ebuilds/*
|
cd ${TOPDIR}
|
||||||
|
rm -rf ${TRASHDIR}/ebuilds
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue