Skip to content

Commit

Permalink
improve updates for developers (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille authored Jan 13, 2022
1 parent eaf71f8 commit 0fe3c1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/src/main/resources/scripts/functions
Original file line number Diff line number Diff line change
Expand Up @@ -926,8 +926,9 @@ function doUpgradeMavenArtifact() {
fi
url="${url}/${artifact_id}"
local repository="${DEVON_SOFTWARE_REPOSITORY}"
if [ "${current_version}" = "0" ]
if [ "${current_version}" = "0" ] && ! doIsForce
then
echo "Current version of ${artifact_id} is 0. Update is aborted. Use force (-f) to enforce update."
return 1
fi
doEcho "*** Software Update of ${artifact_id} ***"
Expand All @@ -938,7 +939,7 @@ function doUpgradeMavenArtifact() {
target_version="${LATEST_VERSION}"
repository="-"
fi
if [ -n "${current_version}" ]
if [ -n "${current_version}" ] && [ "${current_version}" != "0" ]
then
doVersionCompare "${target_version}" "${current_version}"
result=${?}
Expand Down

0 comments on commit 0fe3c1b

Please sign in to comment.