Check extOwner for no value instead
This commit is contained in:
parent
35aa8521c4
commit
daec7a0e0e
1 changed files with 1 additions and 1 deletions
|
|
@ -656,7 +656,7 @@ func checkValidExtension(rootCmd *cobra.Command, m extensions.ExtensionManager,
|
|||
|
||||
for _, ext := range m.List() {
|
||||
if ext.Name() == commandName {
|
||||
if ext.Owner() != "" && ext.Owner() == extOwner {
|
||||
if extOwner != "" && ext.Owner() == extOwner {
|
||||
return ext, alreadyInstalledError
|
||||
}
|
||||
return ext, fmt.Errorf("there is already an installed extension that provides the %q command", commandName)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue