Skip to content

Commit c138516

Browse files
committed
chore(show-spring-boot-version-diff.sh): fix "join: /dev/fd/62:21: is not sorted" error.
Filter out comments and compare properties only. Fix #1213
1 parent 5bb6296 commit c138516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ printf "Comparing with Spring Boot %s (project vs spring versions)\\n\\n" "$SPRI
2121
# I know about useless cat below, but it's here for better readability.
2222
# shellcheck disable=SC2002
2323
join \
24-
<(cat "$PROJECT_POM" | awk -F'[<>]' -v OFS='\t' '$2~/\.version/{print $2, $3}' | sort) \
25-
<(curl -s "$SPRING_POM" | awk -F'[<>]' -v OFS='\t' '$2~/\.version/{print $2, $3}' | sort) \
24+
<(cat "$PROJECT_POM" | awk -F'[<>]' -v OFS='\t' '$2~/\.version$/{print $2, $3}' | sort) \
25+
<(curl -s "$SPRING_POM" | awk -F'[<>]' -v OFS='\t' '$2~/\.version$/{print $2, $3}' | sort) \
2626
| awk '
2727
{
2828
if ($2 != $3){

0 commit comments

Comments
 (0)