Skip to content

Commit

Permalink
chore:clean
Browse files Browse the repository at this point in the history
  • Loading branch information
azukaar committed Aug 11, 2019
1 parent 093c85a commit 6140d24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Empty file.
5 changes: 3 additions & 2 deletions src/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ func PluginInstall(path string, plugins []string) error {
if err != nil {
return err
}

pluginName := filepath.Base(newDep["name"].(string))
if len(strings.Split(pluginName, ":")) > 1 {
pluginName = strings.Split(pluginName, ":")[1]
Expand All @@ -52,7 +51,8 @@ func PluginInstall(path string, plugins []string) error {
pluginName = strings.Split(pluginName, "/")[1]
}

newDep["path"] = pluginFolder + utils.Path("/"+pluginName)
newDep["path"] = pluginFolder + utils.Path(pluginName)

getRes, errorGD := provider.GetDependency(
newDep["provider"].(string),
newDep["name"].(string),
Expand All @@ -63,6 +63,7 @@ func PluginInstall(path string, plugins []string) error {
if errorGD != nil {
return errorGD
}

_, errorPGD := provider.PostGetDependency(
newDep["provider"].(string),
newDep["name"].(string),
Expand Down
1 change: 1 addition & 0 deletions src/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ func GetDependency(provider string, name string, version string, url string, pat

func PostGetDependency(provider string, name string, version string, url string, path string, result string) (string, error) {
depProviderPath := GetProviderPath(provider)

var file = utils.FileExists(depProviderPath + utils.Path("/postGetDependency.gs"))
if provider != "gupm" && file {
input := make(map[string]interface{})
Expand Down

0 comments on commit 6140d24

Please sign in to comment.