Skip to content

Commit f66eb94

Browse files
author
Maxim Butov
committed
minor fixes
1 parent f7f7bc4 commit f66eb94

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/utils.bash

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,14 @@ sort_versions() {
3737
LC_ALL=C sort -t. -k 1,1 -k 2,2n -k 3,3n -k 4,4n -k 5,5n | awk '{print $2}'
3838
}
3939

40-
reverse() {
41-
tac
42-
}
43-
4440
list_all_versions() {
4541
local platform
4642

4743
platform=$(platform)
4844

4945
curl "${curl_opts[@]}" "https://data.services.jetbrains.com/products?code=${JETBRAINS_PRODUCT_CODE}&release.type=release" |
5046
jq -r '.[] | select(.code=="'${JETBRAINS_PRODUCT_CODE}'") | .releases | .[] | select(.downloads!=null and .downloads.'${platform}'!=null and .downloads.'${platform}'!={}) | .version' |
51-
grep "^20" |
52-
sort_versions |
53-
reverse
47+
grep "^20"
5448
}
5549

5650
download_release() {

0 commit comments

Comments
 (0)