fix: do not print find errors (#1102)

This commit is contained in:
nozaq 2021-12-05 17:21:57 +09:00 committed by GitHub
parent 234778a397
commit 5992abb09e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ asdf_extension_cmds() {
for plugin_path in "$plugins_path"/*; do for plugin_path in "$plugins_path"/*; do
plugin="$(basename "$plugin_path")" plugin="$(basename "$plugin_path")"
ext_cmd_path="$plugin_path/lib/commands" 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 if [[ -n $ext_cmds ]]; then
printf "\\nPLUGIN %s\\n" "$plugin" printf "\\nPLUGIN %s\\n" "$plugin"
for ext_cmd in $ext_cmds; do for ext_cmd in $ext_cmds; do