fix condition to check if local patch directory is present
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-06-12 09:11:00 +02:00
parent 29594f5419
commit 23c7458552
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ mkdir -p "${RPMBUILD_BASE_DIR%/}/dist"
echo '%_topdir '"${RPMBUILD_BASE_DIR%/}"'/dist' > /root/.rpmmacros
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"
fi