From 2a985224bc905a8284d6ffc1670cadddc726d3e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 10 May 2022 20:26:55 +0200 Subject: [PATCH] Make update-all-packages command update asdf packages too --- symlinks/bin/update-all-packages | 8 ++++++++ symlinks/tool-versions | 11 +++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/symlinks/bin/update-all-packages b/symlinks/bin/update-all-packages index d46b9cb..6d2330e 100755 --- a/symlinks/bin/update-all-packages +++ b/symlinks/bin/update-all-packages @@ -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 diff --git a/symlinks/tool-versions b/symlinks/tool-versions index 860b8d7..1cedc18 100644 --- a/symlinks/tool-versions +++ b/symlinks/tool-versions @@ -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