only patch packpack if it is not already patched

This commit is contained in:
Andrew Bauer 2017-02-17 13:25:17 -06:00
parent b2b73edbfa
commit 33e8afa0e0
1 changed files with 4 additions and 1 deletions

View File

@ -87,7 +87,10 @@ elif [ "${OS}" == "debian" ] || [ "${OS}" == "ubuntu" ]; then
echo "Begin Debian build..."
# patch packpack to remove "debian" from the source tarball filename
patch -p1 < utils/packpack/deb.mk.patch
patch --dry-run --silent -f -p1 < utils/packpack/deb.mk.patch 2>/dev/null
if [ $? -eq 0 ]; then
patch -p1 < utils/packpack/deb.mk.patch
fi
# Uncompress the Crud tarball and move it into place
if [ -e "web/api/app/Plugin/Crud/LICENSE.txt" ]; then