mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-23 16:41:29 +00:00
Use only nixos.org channels if guess
This commit is contained in:
parent
d973179557
commit
40ef3fe50e
|
@ -58,10 +58,12 @@ func guessChannel() (channel string, err error) {
|
||||||
for _, line := range channels {
|
for _, line := range channels {
|
||||||
fields := strings.Fields(line)
|
fields := strings.Fields(line)
|
||||||
if len(fields) == 2 {
|
if len(fields) == 2 {
|
||||||
|
if strings.Contains(fields[1], "nixos.org/channels") {
|
||||||
channel = fields[0]
|
channel = fields[0]
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
err = errors.New("No channel found")
|
err = errors.New("No channel found")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue