Skip to content

Commit

Permalink
Use only nixos.org channels if guess
Browse files Browse the repository at this point in the history
  • Loading branch information
jollheef committed Jan 4, 2020
1 parent d973179 commit 40ef3fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ func guessChannel() (channel string, err error) {
for _, line := range channels {
fields := strings.Fields(line)
if len(fields) == 2 {
channel = fields[0]
return
if strings.Contains(fields[1], "nixos.org/channels") {
channel = fields[0]
return
}
}
}

Expand Down

0 comments on commit 40ef3fe

Please sign in to comment.