diff --git a/reloc/build_reloc.sh b/reloc/build_reloc.sh index d5af00b..d14c1bf 100755 --- a/reloc/build_reloc.sh +++ b/reloc/build_reloc.sh @@ -37,6 +37,7 @@ VERSION=$(./SCYLLA-VERSION-GEN ${VERSION_OVERRIDE:+ --version "$VERSION_OVERRIDE # the former command should generate build/SCYLLA-PRODUCT-FILE and some other version # related files PRODUCT=`cat build/SCYLLA-PRODUCT-FILE` +DEST="build/$PRODUCT-jmx-$VERSION.noarch.tar.gz" is_redhat_variant() { [ -f /etc/redhat-release ] @@ -55,8 +56,8 @@ if [ "$CLEAN" = "yes" ]; then rm -rf build target fi -if [ -f build/$PRODUCT-jmx-package.tar.gz ]; then - rm build/$PRODUCT-jmx-package.tar.gz +if [ -f "$DEST" ]; then + rm "$DEST" fi if [ -z "$NODEPS" ]; then @@ -66,4 +67,4 @@ fi mvn -B --file scylla-jmx-parent/pom.xml install ./SCYLLA-VERSION-GEN ${VERSION_OVERRIDE:+ --version "$VERSION_OVERRIDE"} ./dist/debian/debian_files_gen.py -scripts/create-relocatable-package.py build/$PRODUCT-jmx-package.tar.gz +scripts/create-relocatable-package.py "$DEST"