aboutsummaryrefslogtreecommitdiffstats
path: root/ci/utility/collectd_build_rpm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/utility/collectd_build_rpm.sh')
-rwxr-xr-xci/utility/collectd_build_rpm.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/ci/utility/collectd_build_rpm.sh b/ci/utility/collectd_build_rpm.sh
index 086aa979..267dc939 100755
--- a/ci/utility/collectd_build_rpm.sh
+++ b/ci/utility/collectd_build_rpm.sh
@@ -18,9 +18,8 @@ source $DIR/package-list.sh
VERSION="VERSION_NOT_SET"
-rm -rf $RPM_WORKDIR
cd $COLLECTD_DIR
-VERSION=$( $COLLECTD_DIR/version-gen.sh | sed "s/\W$//g" )
+VERSION=$( $COLLECTD_DIR/version-gen.sh | sed "s/^\W$//g" )
$COLLECTD_DIR/build.sh
$COLLECTD_DIR/configure
make dist
@@ -37,4 +36,4 @@ sed --regexp-extended \
--expression="s/without_intel_rdt:[0-9]/without_intel_rdt:1/g" \
$COLLECTD_DIR/contrib/redhat/collectd.spec
-rpmbuild --define "_topdir $RPM_WORKDIR" -bb $COLLECTD_DIR/contrib/redhat/collectd.spec \ No newline at end of file
+rpmbuild --define "_topdir $RPM_WORKDIR" -bb $COLLECTD_DIR/contrib/redhat/collectd.spec