We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bc2bdb commit 062fec2Copy full SHA for 062fec2
CheckReleases.sh
@@ -15,7 +15,7 @@ check_release()
15
fi
16
17
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)
+ latest=$(echo "$data" | grep -Po "$regex" | sort -V | tail -n 1)
19
if [ -n "$latest" ]; then
20
dot_count=$(echo $latest | grep -o "\." | wc -l)
21
if [ "$dot_count" = "1" ]; then
0 commit comments