From 840ab567c9914b22629039e396cb73b98ac0ee33 Mon Sep 17 00:00:00 2001 From: James Harton Date: Thu, 15 Feb 2024 09:03:38 +1300 Subject: [PATCH] improvement: automatically update plugins when installing. --- asdf_install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/asdf_install b/asdf_install index 919e69a..145440f 100755 --- a/asdf_install +++ b/asdf_install @@ -8,7 +8,9 @@ INSTALLED_PLUGINS=$(asdf plugin list || echo "") for PLUGIN in $REQUIRED_PLUGINS; do if [[ $INSTALLED_PLUGINS =~ (^|[[:space:]])"$PLUGIN"($|[[:space:]]) ]]; then - echo "ASDF plugin $PLUGIN already installed" + echo "Updating $PLUGIN ASDF plugin..." + asdf plugin update $PLUGIN + echo " ...done" else echo "Installing $PLUGIN ASDF plugin..." asdf plugin add $PLUGIN