diff --git a/release-build.sh b/release-build.sh index f9b39c11f33..ca806dd593b 100755 --- a/release-build.sh +++ b/release-build.sh @@ -72,14 +72,14 @@ mvn clean install -DskipTests -ntp -Pwar -Pwro4j-prebuild-cache # generate checksum for download artifacts -if [ -f "release/target/GeoNetwork-$version/geonetwork-bundle-$newversion.zip.MD5" ]; then - rm release/target/GeoNetwork-$version/geonetwork-bundle-$newversion.zip.MD5 +if [ -f "release/target/GeoNetwork-$mainVersion/geonetwork-bundle-$newversion.zip.MD5" ]; then + rm release/target/GeoNetwork-$mainVersion/geonetwork-bundle-$newversion.zip.MD5 fi if [[ ${OSTYPE:0:6} == 'darwin' ]]; then md5 -r web/target/geonetwork.war > web/target/geonetwork.war.md5 - md5 -r release/target/GeoNetwork-$nextVersionNumber/geonetwork-bundle-$newversion.zip > release/target/GeoNetwork-$nextVersionNumber/geonetwork-bundle-$newversion.zip.md5 + md5 -r release/target/GeoNetwork-$mainVersion/geonetwork-bundle-$newversion.zip > release/target/GeoNetwork-$nextVersionNumber/geonetwork-bundle-$newversion.zip.md5 else (cd web/target && md5sum geonetwork.war > geonetwork.war.md5) - (cd release/target/GeoNetwork-$nextVersionNumber && md5sum geonetwork-bundle-$newversion.zip > geonetwork-bundle-$newversion.zip.md5) + (cd release/target/GeoNetwork-$mainVersion && md5sum geonetwork-bundle-$newversion.zip > geonetwork-bundle-$newversion.zip.md5) fi