From 822cb479693ae15990ad9feaa380506187366954 Mon Sep 17 00:00:00 2001 From: Milan Ihl Date: Fri, 20 Dec 2024 13:17:29 +0100 Subject: [PATCH] updates/keila.sh: fix too early check for erlang+elixir version Signed-off-by: Milan Ihl --- updates/keila.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/updates/keila.sh b/updates/keila.sh index 1c01efc..c44d0a7 100644 --- a/updates/keila.sh +++ b/updates/keila.sh @@ -7,8 +7,6 @@ basedir=$HOME/var/keila release=`curl -Ls https://api.github.com/repos/pentacent/keila/releases/latest | jq -r '.tag_name'` oldrelease=`$HOME/bin/keila version | cut -d " " -f2-` tools=$basedir/.tool-versions -erlang_ver=$(grep "erlang" "$tools" | awk '{print $2}') -elixir_ver=$(grep "elixir" "$tools" | awk '{print $2}') echo "=== Old Keila is at [ $oldrelease ], latest release is [ $release ] ===" read -p "=> Reply yY to proceed..." -n 1 -r @@ -22,6 +20,9 @@ cd $basedir git fetch git checkout $release +erlang_ver=$(grep "erlang" "$tools" | awk '{print $2}') +elixir_ver=$(grep "elixir" "$tools" | awk '{print $2}') + . "$HOME/.asdf/asdf.sh" . "$HOME/.asdf/completions/asdf.bash"