improvement: automatically update plugins when installing.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
James Harton 2024-02-15 09:03:38 +13:00
parent 6a455313da
commit 840ab567c9

View file

@ -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