Make update-all-packages command update asdf packages too
parent
5f3addf206
commit
2a985224bc
|
@ -62,6 +62,14 @@ if type asdf > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
asdf update
|
asdf update
|
||||||
asdf plugin-update --all
|
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
|
fi
|
||||||
|
|
||||||
if type brew > /dev/null 2>&1
|
if type brew > /dev/null 2>&1
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
direnv 2.31.0
|
direnv 2.31.0
|
||||||
nodejs 16.9.1
|
nodejs 18.1.0
|
||||||
python system
|
python 3.10.4
|
||||||
ruby 3.0.0
|
ruby 3.0.0
|
||||||
neovim 0.7.0
|
neovim 0.7.0
|
||||||
bat 0.18.3
|
bat 0.20.0
|
||||||
awscli 2.2.44
|
awscli 2.2.44
|
||||||
java openjdk-17.0.2
|
java openjdk-17.0.2
|
||||||
rust 1.60.0
|
rust 1.60.0
|
||||||
lua 5.4.3
|
lua 5.4.4
|
||||||
|
actionlint 1.6.12
|
||||||
|
act 0.2.26
|
||||||
|
shellcheck 0.8.0
|
||||||
|
|
Loading…
Reference in New Issue