forked from Mirrors/gomuks
Close update channel on headless return
This commit is contained in:
parent
df0ff2035e
commit
2361a5fa96
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ type Config struct {
|
|||
}
|
||||
|
||||
func Init(conf Config, updates chan fmt.Stringer) Completed {
|
||||
defer close(updates)
|
||||
|
||||
// setup package dir
|
||||
os.Setenv("GOMUKS_ROOT", conf.OutputDir)
|
||||
updates <- exportDirSet{dir: conf.OutputDir}
|
||||
|
|
Loading…
Add table
Reference in a new issue