Skip to content

Commit

Permalink
fix: wait until the plugin update are finished
Browse files Browse the repository at this point in the history
  • Loading branch information
yacchi committed Sep 3, 2021
1 parent 30d27cb commit 77a7ada
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/commands/command-plugin-update.bash
Expand Up @@ -8,12 +8,14 @@ plugin_update_command() {

local plugin_name="$1"
local gitref="${2}"
local plugins=

if [ "$plugin_name" = "--all" ]; then
if [ -d "$(asdf_data_dir)"/plugins ]; then
find "$(asdf_data_dir)"/plugins -mindepth 1 -maxdepth 1 -type d | while IFS= read -r dir; do
plugins=$(find "$(asdf_data_dir)"/plugins -mindepth 1 -maxdepth 1 -type d)
while IFS= read -r dir; do
update_plugin "$(basename "$dir")" "$dir" "$gitref" &
done
done <<<"$plugins"
wait
fi
else
Expand Down

0 comments on commit 77a7ada

Please sign in to comment.