We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a550dd + ac0f726 commit 7c963feCopy full SHA for 7c963fe
bin/latest-stable
@@ -7,12 +7,12 @@
7
# reject release candidates
8
# reject empty line
9
# finally take last one
10
-ASDF_ELIXIR_LATEST_VERSION=$(./list-all | grep -Pv "^0|^main|^master|otp|rc|^$" | tail -n 1)
+ASDF_ELIXIR_LATEST_VERSION=$(./list-all | tr " " "\n" | grep -Ev "^0|^main|^master|otp|rc|^$" | tail -n 1)
11
12
# gets current erlang version without headers
13
# changes spaces to new line
14
# takes second line (Name Version Source Installed)
15
-ASDF_ELIXIR_LATEST_OTP=$(asdf current --no-header erlang | tr -s " " "\n" | sed -n 2p)
+ASDF_ELIXIR_LATEST_OTP=$(asdf current --no-header erlang | tr -s " ." "\n" | sed -n 2p)
16
17
# Note: asdf latest does not allows latest stable version to start with number
18
# therefore installing from source by git ref is not supported, see:
0 commit comments