mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
Close update channel on headless return (again)
The issue was elsewhere nevermind
This commit is contained in:
parent
80c8cd62ef
commit
a55f78d628
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ type Config struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func Init(conf Config, updates chan fmt.Stringer) error {
|
func Init(conf Config, updates chan fmt.Stringer) error {
|
||||||
|
defer close(updates)
|
||||||
|
|
||||||
// setup package dir
|
// setup package dir
|
||||||
os.Setenv("GOMUKS_ROOT", conf.OutputDir)
|
os.Setenv("GOMUKS_ROOT", conf.OutputDir)
|
||||||
updates <- exportDirSet{dir: conf.OutputDir}
|
updates <- exportDirSet{dir: conf.OutputDir}
|
||||||
|
|
Loading…
Add table
Reference in a new issue