Skip to content

Commit

Permalink
remove nodejs from .tool-versions and simplify grep regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix committed Nov 5, 2022
1 parent 13bb6c5 commit 1551240
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
elixir 1.14.1-otp-24
erlang 24.3.4.6
nodejs 16.18.0
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ cd $SCRIPT_DIR/..

asdf install

ELIXIR_VERSION=$(asdf current elixir 2>&1 | grep -o '\S*' | sed -n 2p)
ERLANG_VERSION=$(asdf current erlang 2>&1 | grep -o '\S*' | sed -n 2p)
ELIXIR_VERSION=$(asdf current elixir 2>&1 | grep -oP '\d\S+')
ERLANG_VERSION=$(asdf current erlang 2>&1 | grep -oP '\d\S+')

asdf global elixir $ELIXIR_VERSION
asdf global erlang $ERLANG_VERSION
Expand Down
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ then

asdf install

ELIXIR_VERSION=$(asdf current elixir 2>&1 | grep -o '\S*' | sed -n 2p)
ERLANG_VERSION=$(asdf current erlang 2>&1 | grep -o '\S*' | sed -n 2p)
ELIXIR_VERSION=$(asdf current elixir 2>&1 | grep -oP '\d\S+')
ERLANG_VERSION=$(asdf current erlang 2>&1 | grep -oP '\d\S+')

asdf global elixir $ELIXIR_VERSION
asdf global erlang $ERLANG_VERSION
Expand Down

0 comments on commit 1551240

Please sign in to comment.