Remove raw root.img after packaging it into rpm - if DISCARD_PREPARED_IMAGE is set

This commit is contained in:
Marek Marczykowski-Górecki 2018-05-24 04:03:47 +02:00
parent 75ca54bea6
commit 310019ea3c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -26,3 +26,7 @@ rpmbuild --target noarch \
--define "_topdir $PWD/rpmbuild" \ --define "_topdir $PWD/rpmbuild" \
--define "_tmppath $PWD/rpmbuild/tmp" \ --define "_tmppath $PWD/rpmbuild/tmp" \
-bb templates.spec -bb templates.spec
if [ "0$DISCARD_PREPARED_IMAGE" -eq "1" ]; then
rm -rf "qubeized_images/$NAME"
fi