From 26d2c64477a1faabedd9a5f97aa7da706988cd72 Mon Sep 17 00:00:00 2001 From: James Hegedus Date: Wed, 19 May 2021 19:01:36 +1000 Subject: [PATCH] fix: pipe find into while --- lib/commands/command-plugin-update.bash | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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