mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Merge pull request #323 from the-mikedavis/existing-plugin-exit-code
Make the exit code of an already installed plugin distinct
This commit is contained in:
commit
878f0e9459
@ -26,7 +26,7 @@ plugin_add_command() {
|
||||
|
||||
if [ -d "$plugin_path" ]; then
|
||||
display_error "Plugin named $plugin_name already added"
|
||||
exit 1
|
||||
exit 2
|
||||
else
|
||||
if ! git clone "$source_url" "$plugin_path"; then
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user