From 5083b0a0a352c09ad25be2c8937ef8e076f4a5e3 Mon Sep 17 00:00:00 2001 From: Stephen Anderson Date: Tue, 21 Nov 2023 10:38:51 -0500 Subject: [PATCH] Add a null coalesce to the url so that it resolves to snapshot URL if undefined. --- assets/check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/check b/assets/check index 26f9ddc..006e5a3 100755 --- a/assets/check +++ b/assets/check @@ -64,7 +64,7 @@ if [ -n "$uniqueVersion" ]; then version=$(echo ${version%-$uniqueVersion}-SNAPSHOT) fi -url=$release_url +url=${release_url:-${snapshot_url}} if [[ "$version" = *-SNAPSHOT ]]; then [ -n "$snapshot_url" ] && url=$snapshot_url metadataUrl="$url/${groupId//.//}/$artifactId/$version/maven-metadata.xml"