We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 369183d commit 4373302Copy full SHA for 4373302
generation/check_existing_release_versions.sh
@@ -29,13 +29,12 @@ function find_existing_version_pom() {
29
local group_id_dir="${group_id//\.//}"
30
local URL="${MAVEN_SITE}/${group_id_dir}/${artifact_id}/${version}/${artifact_id}-${version}.pom"
31
local status_code=$(curl --silent --head -o /dev/null -w "%{http_code}" $URL)
32
- if [ "${status_code}" == "404" ]; then
33
- echo " The version does not exists. Good"
34
- else
+ if [ "${status_code}" == "200" ]; then
35
echo " The version already exists at ${URL}. Please investigate."
36
return_code=1
+ else
+ echo " The version does not exists (status_code ${status_code} for ${URL}). Good."
37
fi
38
-
39
}
40
41
return_code=0
0 commit comments