Skip to content

Commit

Permalink
fix: Versions prior to 2.0 are not displayed (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fbrisset authored Jun 3, 2024
1 parent a6cb93c commit b7e5a93
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

# Contents

- [Contents](#contents)
- [Dependencies](#dependencies)
- [Install](#install)
- [Contributing](#contributing)
Expand All @@ -16,9 +17,12 @@
# Dependencies

- `bash`, `curl`, `tar`, and [POSIX utilities](https://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html).
- `unzip` for MacOS.

# Install

*Please note versions before 2.0 are not installable and version 2.2.3 too.*

Plugin:

```shell
Expand Down
6 changes: 5 additions & 1 deletion bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ linux*)
# https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-linux.tar.gz
platform="linux"
if is_older_version "${ASDF_INSTALL_VERSION}" ${min_arch_set_gz_version_in_linux}; then
download_file=pandoc-${ASDF_INSTALL_VERSION}-${platform}.tar.gz
if [ "$ASDF_INSTALL_VERSION" == "2.0" ]; then
download_file=pandoc-${ASDF_INSTALL_VERSION}-${platform}-3.tar.gz
else
download_file=pandoc-${ASDF_INSTALL_VERSION}-${platform}.tar.gz
fi
else
download_file=pandoc-${ASDF_INSTALL_VERSION}-${platform}-${arch}.tar.gz
fi
Expand Down
4 changes: 3 additions & 1 deletion bin/list-all
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ plugin_dir=$(dirname "$(dirname "$current_script_path")")
# shellcheck source=./lib/utils.bash
source "${plugin_dir}/lib/utils.bash"

list_all_versions | sort_versions | xargs echo
list_all_versions |
awk -F. '{ if ($1 >= 2 && ($2 > 2 || ($2 == 2 && $3 != 3))) print $0 }' | # filter versions 2.0 and above, except 2.2.3
sort_versions | xargs echo

0 comments on commit b7e5a93

Please sign in to comment.