fix condition to check if local patch directory is present
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-06-12 09:11:00 +02:00
parent 29594f5419
commit 23c7458552
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -7,7 +7,7 @@ mkdir -p "${RPMBUILD_BASE_DIR%/}/dist"
echo '%_topdir '"${RPMBUILD_BASE_DIR%/}"'/dist' > /root/.rpmmacros echo '%_topdir '"${RPMBUILD_BASE_DIR%/}"'/dist' > /root/.rpmmacros
rpmdev-setuptree rpmdev-setuptree
if [ -d "$DIR" ]; then if [ -d "${RPMBUILD_BASE_DIR%/}/patch/" ]; then
rsync -q -av "${RPMBUILD_BASE_DIR%/}/patch/" "${RPMBUILD_BASE_DIR%/}/dist/SOURCES" rsync -q -av "${RPMBUILD_BASE_DIR%/}/patch/" "${RPMBUILD_BASE_DIR%/}/dist/SOURCES"
fi fi