Browse Source

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

master
belliash 8 years ago
parent
commit
792ba3f6b8
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libraries/filesystem

+ 3
- 1
libraries/filesystem View File

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



Loading…
Cancel
Save