Revert "Create wrapper directory outside of /bin/ for FHS chroots to be closer to FHS"

This reverts commit 9deb7f8aae.
This commit is contained in:
Michael Raskin 2014-09-02 20:17:55 +04:00
parent d812281674
commit af4c369d0a

View File

@ -97,9 +97,9 @@ filterExisting() {
wrapProgram() {
local prog="$1"
local progBasename=$(basename $prog)
local hiddenDir="$(dirname $prog)/../wrapped-bin/.$progBasename-wrapped-bin"
mkdir -p $hiddenDir
local hidden="$(cd "$hiddenDir"; pwd)/$progBasename"
local hiddenDir=$(dirname $prog)/.$progBasename-wrapped-bin
local hidden=$hiddenDir/$progBasename
mkdir $hiddenDir
mv $prog $hidden
makeWrapper $hidden $prog "$@"
}