Skip to content

Commit

Permalink
Merge pull request #76 from Taiki130/feature/fix-profile-prompt
Browse files Browse the repository at this point in the history
fix: prompt selection
  • Loading branch information
Taiki130 authored Apr 9, 2024
2 parents 12c9672 + 3225ae4 commit e98303f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@ func getProfilesFromIni(fname string) (profiles []string, err error) {
}

func getProfileFromIniSection(section string) string {
if section == "default" {
return section
}
return strings.Split(section, " ")[1]
}

0 comments on commit e98303f

Please sign in to comment.