improvement: automatically update plugins when installing.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6a455313da
commit
840ab567c9
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue