Revert "Change exit code to 0 and output message to stdout"

This reverts commit e48ed1c228.
This commit is contained in:
Trevor Brown 2020-03-31 09:09:52 -04:00
parent 19acf2d8e7
commit c4c022454f

View File

@ -27,8 +27,8 @@ plugin_add_command() {
mkdir -p "$(asdf_data_dir)/plugins"
if [ -d "$plugin_path" ]; then
echo "Plugin named $plugin_name already added"
exit 0
display_error "Plugin named $plugin_name already added"
exit 2
else
asdf_run_hook "pre_asdf_plugin_add" "$plugin_name"
asdf_run_hook "pre_asdf_plugin_add_${plugin_name}"