Skip to content

Commit 062fec2

Browse files
committed
Use a different method to match the regex.
1 parent 2bc2bdb commit 062fec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CheckReleases.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ check_release()
1515
fi
1616

1717
regex=$(tail -n 1 $1)
18-
latest=$(echo "$data" | grep -E "$regex" | grep -o -E "[0-9]+\.[0-9]+(\.[0-9]+)?" | sort -V | tail -n 1)
18+
latest=$(echo "$data" | grep -Po "$regex" | sort -V | tail -n 1)
1919
if [ -n "$latest" ]; then
2020
dot_count=$(echo $latest | grep -o "\." | wc -l)
2121
if [ "$dot_count" = "1" ]; then

0 commit comments

Comments
 (0)