summaryrefslogtreecommitdiffstats
path: root/redhat/genrpm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-xredhat/genrpm.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh
index 4b8c496c1..0ea182e45 100755
--- a/redhat/genrpm.sh
+++ b/redhat/genrpm.sh
@@ -210,4 +210,6 @@ fi
set -x
rm -rf "${SOURCEDIR}"
-#rm -rf "${BUILDDIR}/"*${COMP}-${VERSION}*
+
+# Removes BUILDDIR if build succeeded
+rm -rf "${BUILDDIR}/"*${COMP##*/}-${VERSION}*