Skip to content

Commit

Permalink
fix: pipe find into while
Browse files Browse the repository at this point in the history
  • Loading branch information
jthegedus committed May 19, 2021
1 parent 10d9c12 commit 26d2c64
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/commands/command-plugin-update.bash
Expand Up @@ -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
Expand Down

0 comments on commit 26d2c64

Please sign in to comment.