mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Revert "Change exit code to 0 and output message to stdout"
This reverts commit e48ed1c228
.
This commit is contained in:
parent
19acf2d8e7
commit
c4c022454f
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user