diff --git a/build_template_rpm b/build_template_rpm index fea85d2..f2ebd6d 100755 --- a/build_template_rpm +++ b/build_template_rpm @@ -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