feat(grafana-cli): minor changes

This commit is contained in:
Torkel Ödegaard
2016-03-28 21:42:26 +02:00
parent b3bda2aa64
commit 1e44ee9e9b
8 changed files with 36 additions and 33 deletions

View File

@ -28,9 +28,9 @@ func ShouldUpgrade(installed string, remote m.Plugin) bool {
}
func upgradeAllCommand(c CommandLine) error {
pluginDir := c.GlobalString("path")
pluginsDir := c.GlobalString("pluginsDir")
localPlugins := s.GetLocalPlugins(pluginDir)
localPlugins := s.GetLocalPlugins(pluginsDir)
remotePlugins, err := s.ListAllPlugins(c.GlobalString("repo"))
@ -53,7 +53,7 @@ func upgradeAllCommand(c CommandLine) error {
for _, p := range pluginsToUpgrade {
log.Infof("Upgrading %v \n", p.Id)
s.RemoveInstalledPlugin(pluginDir, p.Id)
s.RemoveInstalledPlugin(pluginsDir, p.Id)
InstallPlugin(p.Id, "", c)
}