diff --git a/lib/commands/command-plugin-update.bash b/lib/commands/command-plugin-update.bash index ffdba4afd..e31048323 100644 --- a/lib/commands/command-plugin-update.bash +++ b/lib/commands/command-plugin-update.bash @@ -11,10 +11,9 @@ plugin_update_command() { if [ "$plugin_name" = "--all" ]; then if [ -d "$(asdf_data_dir)"/plugins ]; then - plugins=(find "$(asdf_data_dir)"/plugins -mindepth 1 -maxdepth 1 -type d) - while IFS= read -r dir; do + find "$(asdf_data_dir)"/plugins -mindepth 1 -maxdepth 1 -type d -print0 | while IFS= read -r dir; do update_plugin "$(basename "$dir")" "$dir" "$gitref" & - done <<<"$plugins" + done wait fi else