packpack rpm specfile - ensure Crud submodule folder is empty

This commit is contained in:
Andrew Bauer 2017-02-17 07:07:17 -06:00
parent 4809a5d7de
commit dc76a876a1
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@ if [ "${OS}" == "el" ] || [ "${OS}" == "fedora" ]; then
#patch -p1 < utils/packpack/autosetup.patch
ln -sf distros/redhat rpm
# The rpm specfile requires the Crud submodule folder to be empty
if [ -e "web/api/app/Plugin/Crud/LICENSE.txt" ]; then
rm -rf web/api/app/Plugin/Crud
mkdir web/api/app/Plugin/Crud
fi
if [ "${OS}" == "el" ]; then
zmrepodistro=${OS}
else