updates/keila.sh: fix too early check for erlang+elixir version

Signed-off-by: Milan Ihl <milan.ihl@hostsharing.net>
This commit is contained in:
Milan Ihl 2024-12-20 13:17:29 +01:00
parent a32b1ec412
commit 822cb47969

View File

@ -7,8 +7,6 @@ basedir=$HOME/var/keila
release=`curl -Ls https://api.github.com/repos/pentacent/keila/releases/latest | jq -r '.tag_name'` release=`curl -Ls https://api.github.com/repos/pentacent/keila/releases/latest | jq -r '.tag_name'`
oldrelease=`$HOME/bin/keila version | cut -d " " -f2-` oldrelease=`$HOME/bin/keila version | cut -d " " -f2-`
tools=$basedir/.tool-versions 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 ] ===" echo "=== Old Keila is at [ $oldrelease ], latest release is [ $release ] ==="
read -p "=> Reply yY to proceed..." -n 1 -r read -p "=> Reply yY to proceed..." -n 1 -r
@ -22,6 +20,9 @@ cd $basedir
git fetch git fetch
git checkout $release 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/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash" . "$HOME/.asdf/completions/asdf.bash"