Fixed loadedProfiles

master
xSmurf 10 years ago
parent 8ff505f2e3
commit a117e87785

@ -99,7 +99,7 @@ func handleInstall(c *cli.Context) {
pname := c.Args()[0] pname := c.Args()[0]
OzProfile, err := loadProfile(pname, OzConfig.ProfileDir) OzProfile, err := loadProfile(pname, OzConfig.ProfileDir)
if err != nil || OzProfile == nil { if err != nil || OzProfile == nil {
installExit(c.Bool("hook"), fmt.Errorf("Unable to load profiles for %s.\n", pname)) installExit(c.Bool("hook"), fmt.Errorf("Unable to load profiles for %s (%v).\n", pname, err))
return // For clarity return // For clarity
} }

@ -130,6 +130,8 @@ func LoadProfiles(dir string) (Profiles, error) {
ps = append(ps, p) ps = append(ps, p)
} }
} }
loadedProfiles = ps
return ps, nil return ps, nil
} }

Loading…
Cancel
Save