Close update channel on headless return

This commit is contained in:
FIGBERT 2023-08-09 10:53:00 -07:00
parent df0ff2035e
commit 2361a5fa96
No known key found for this signature in database
GPG key ID: 67F1598D607A844B

View file

@ -23,6 +23,8 @@ type Config struct {
} }
func Init(conf Config, updates chan fmt.Stringer) Completed { func Init(conf Config, updates chan fmt.Stringer) Completed {
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}