aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas C. Villa Real <lucasvr@gobolinux.org>2017-02-03 00:47:50 -0200
committerLucas C. Villa Real <lucasvr@gobolinux.org>2017-02-03 00:47:50 -0200
commit18676506c15568d526589ef38f7a9392b2536537 (patch)
tree8b8bd9350ca520c38f5ceb204e73576487997ae1
parent9ce5c999d21cd9021f7b7686f7d721e4b3ad07fa (diff)
downloadThirdPartyInstallers-18676506c15568d526589ef38f7a9392b2536537.tar.xz
Catch packages attempting to install files under /usr/local.
-rwxr-xr-xbin/ThirdPartyInstaller5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ThirdPartyInstaller b/bin/ThirdPartyInstaller
index bcbf6d5..7cec3b6 100755
--- a/bin/ThirdPartyInstaller
+++ b/bin/ThirdPartyInstaller
@@ -127,6 +127,11 @@ function flatten_package() {
cp ${verbose} -a ./usr/* .
rm -rf -- ./usr
fi
+ if [ -d "./local" ]
+ then
+ cp ${verbose} -a ./local/* .
+ rm -rf -- ./local
+ fi
if [ -d "./etc" ]
then
mkdir -p Resources/Defaults/Settings