Skip to content

Commit d5e5f3c

Browse files
committed
chore: show-spring-boot-version-diff.sh now fails when Spring's POM url not found
1 parent e8ffaac commit d5e5f3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/scripts/show-spring-boot-version-diff.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ SPRING_VERSION='2.2.13.RELEASE'
1818
#SPRING_VERSION="$(grep -FA1 '<artifactId>spring-boot-starter-parent' "$PROJECT_POM" | awk -F'[<>]' '/<version>/{print $3}')"
1919

2020
# @todo #869 show-spring-boot-version-diff.sh: properly handle recursive properties
21-
SPRING_POM="https://raw.githubusercontent.com/spring-projects/spring-boot/v$SPRING_VERSION/spring-boot-project/spring-boot-dependencies/pom.xml"
21+
SPRING_POM="$(curl -sS --fail-with-body https://raw.githubusercontent.com/spring-projects/spring-boot/v$SPRING_VERSION/spring-boot-project/spring-boot-dependencies/pom.xml)"
2222

2323
printf "Comparing with Spring Boot %s (project vs spring versions)\\n\\n" "$SPRING_VERSION"
2424

2525
# I know about useless cat below, but it's here for better readability.
2626
# shellcheck disable=SC2002
2727
join \
28-
<(cat "$PROJECT_POM" | awk -F'[<>]' -v OFS='\t' '$2~/\.version$/{print $2, $3}' | sort) \
29-
<(curl -sS --fail-with-body "$SPRING_POM" | awk -F'[<>]' -v OFS='\t' '$2~/\.version$/{print $2, $3}' | sort) \
28+
<(cat "$PROJECT_POM" | awk -F'[<>]' -v OFS='\t' '$2~/\.version$/{print $2, $3}' | sort) \
29+
<(echo "$SPRING_POM" | awk -F'[<>]' -v OFS='\t' '$2~/\.version$/{print $2, $3}' | sort) \
3030
| awk '
3131
{
3232
if ($2 != $3){

0 commit comments

Comments
 (0)