always delete then recreate Crud folder for redhat builds

This commit is contained in:
Andy Bauer 2017-03-07 14:44:53 -06:00
parent d6caa7562f
commit e61a3fae9c
1 changed files with 2 additions and 4 deletions

View File

@ -156,10 +156,8 @@ if [ "${TRAVIS_EVENT_TYPE}" == "cron" ] || [ "${TRAVIS}" != "true" ]; then
ln -sf distros/redhat rpm ln -sf distros/redhat rpm
# The rpm specfile requires the Crud submodule folder to be empty # 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 rm -rf web/api/app/Plugin/Crud
mkdir web/api/app/Plugin/Crud mkdir web/api/app/Plugin/Crud
fi
if [ "${OS}" == "el" ]; then if [ "${OS}" == "el" ]; then
zmrepodistro=${OS} zmrepodistro=${OS}