We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
latest-stable
list-all
1 parent 7c963fe commit fb53c45Copy full SHA for fb53c45
bin/latest-stable
@@ -1,13 +1,16 @@
1
#!/usr/bin/env bash
2
3
+# get the directory of the current script
4
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
+
6
# calling a script to list all elixir releases
7
# reject releases before 1.0.0 (starting with 0)
8
# reject main and master branches
9
# reject releases with otp version
10
# reject release candidates
11
# reject empty line
12
# finally take last one
-ASDF_ELIXIR_LATEST_VERSION=$(./list-all | tr " " "\n" | grep -Ev "^0|^main|^master|otp|rc|^$" | tail -n 1)
13
+ASDF_ELIXIR_LATEST_VERSION=$("$SCRIPT_DIR"/list-all | tr " " "\n" | grep -Ev "^0|^main|^master|otp|rc|^$" | tail -n 1)
14
15
# gets current erlang version without headers
16
# changes spaces to new line
0 commit comments