From 5992abb09e6f5e0af690bf0e99619386187949db Mon Sep 17 00:00:00 2001 From: nozaq Date: Sun, 5 Dec 2021 17:21:57 +0900 Subject: [PATCH] fix: do not print `find` errors (#1102) --- lib/commands/command-help.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/command-help.bash b/lib/commands/command-help.bash index d9c5e20f..68b2fbff 100644 --- a/lib/commands/command-help.bash +++ b/lib/commands/command-help.bash @@ -19,7 +19,7 @@ asdf_extension_cmds() { for plugin_path in "$plugins_path"/*; do plugin="$(basename "$plugin_path")" ext_cmd_path="$plugin_path/lib/commands" - ext_cmds="$(find "$ext_cmd_path" -name "command*.bash")" + ext_cmds="$(find "$ext_cmd_path" -name "command*.bash" 2>/dev/null)" if [[ -n $ext_cmds ]]; then printf "\\nPLUGIN %s\\n" "$plugin" for ext_cmd in $ext_cmds; do