diff options
author | Lucas C. Villa Real <lucasvr@gobolinux.org> | 2017-02-03 00:47:50 -0200 |
---|---|---|
committer | Lucas C. Villa Real <lucasvr@gobolinux.org> | 2017-02-03 00:47:50 -0200 |
commit | 18676506c15568d526589ef38f7a9392b2536537 (patch) | |
tree | 8b8bd9350ca520c38f5ceb204e73576487997ae1 | |
parent | 9ce5c999d21cd9021f7b7686f7d721e4b3ad07fa (diff) | |
download | ThirdPartyInstallers-18676506c15568d526589ef38f7a9392b2536537.tar.xz |
Catch packages attempting to install files under /usr/local.
-rwxr-xr-x | bin/ThirdPartyInstaller | 5 |
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 |