Do not fail in case of no directory to cleanup

There is "set -e", so previous version fails when there is no directory
to cleanup.
This commit is contained in:
Marek Marczykowski-Górecki 2015-03-17 23:24:42 +01:00
parent a95bf3a95f
commit c850ed3ca8

View File

@ -24,4 +24,6 @@ rpmbuild --target noarch \
--define "_tmppath $PWD/rpmbuild/tmp" \
-bb templates.spec
[ -d appmenus-$$ ] && rm -rf appmenus-$$ appmenus
if [ -d appmenus-$$ ]; then
rm -rf appmenus-$$ appmenus
fi