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:
Trevor Brown 2018-05-30 09:11:38 -04:00 committed by GitHub
commit 878f0e9459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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