Make update-all-packages command update asdf packages too

main
Ensar Sarajčić 2022-05-10 20:26:55 +02:00
parent 5f3addf206
commit 2a985224bc
2 changed files with 15 additions and 4 deletions

View File

@ -62,6 +62,14 @@ if type asdf > /dev/null 2>&1
then
asdf update
asdf plugin-update --all
ASDF_INSTALLED_GLOBAL_PACKAGES=$(comm -12 <(cat $HOME/.tool-versions | cut -f1 -d ' ' | sort) <(asdf plugin list | sort))
ASDF_PACKAGES_TO_UPDATE=$(comm -3 <(echo "$ASDF_INSTALLED_GLOBAL_PACKAGES" | sort) <(printf "java\nruby" | sort))
echo $ASDF_PACKAGES_TO_UPDATE
for PKG in $ASDF_PACKAGES_TO_UPDATE; do
asdf install $PKG latest
asdf global $PKG $(asdf latest $PKG)
done
fi
if type brew > /dev/null 2>&1

View File

@ -1,10 +1,13 @@
direnv 2.31.0
nodejs 16.9.1
python system
nodejs 18.1.0
python 3.10.4
ruby 3.0.0
neovim 0.7.0
bat 0.18.3
bat 0.20.0
awscli 2.2.44
java openjdk-17.0.2
rust 1.60.0
lua 5.4.3
lua 5.4.4
actionlint 1.6.12
act 0.2.26
shellcheck 0.8.0