Skip to content

Commit

Permalink
fix: use awk
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnnnn committed May 18, 2024
1 parent e1f174d commit add666b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/latest-stable
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugin_dir=$(dirname "$(dirname "$current_script_path")")
# shellcheck source=./lib/utils.bash
. "${plugin_dir}/lib/utils.bash"

list_all_versions | sort_versions | tail -r | while read -r line; do
list_all_versions | sort_versions | awk '{a[i++]=$0} END {for (j=i-1; j>=0; j--) print a[j]}' | while read -r line; do
if [[ ! $line =~ -(alpha|beta|rc) ]]; then
version="$line"
printf "%s\n" "$version"
Expand Down

0 comments on commit add666b

Please sign in to comment.