Skip to content

Commit 7c963fe

Browse files
authored
Merge pull request #141 from Eiji7/patch-1
latest-stable script compatibility fixes
2 parents 8a550dd + ac0f726 commit 7c963fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: bin/latest-stable

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
# reject release candidates
88
# reject empty line
99
# finally take last one
10-
ASDF_ELIXIR_LATEST_VERSION=$(./list-all | grep -Pv "^0|^main|^master|otp|rc|^$" | tail -n 1)
10+
ASDF_ELIXIR_LATEST_VERSION=$(./list-all | tr " " "\n" | grep -Ev "^0|^main|^master|otp|rc|^$" | tail -n 1)
1111

1212
# gets current erlang version without headers
1313
# changes spaces to new line
1414
# takes second line (Name Version Source Installed)
15-
ASDF_ELIXIR_LATEST_OTP=$(asdf current --no-header erlang | tr -s " " "\n" | sed -n 2p)
15+
ASDF_ELIXIR_LATEST_OTP=$(asdf current --no-header erlang | tr -s " ." "\n" | sed -n 2p)
1616

1717
# Note: asdf latest does not allows latest stable version to start with number
1818
# therefore installing from source by git ref is not supported, see:

0 commit comments

Comments
 (0)