Close update channel on headless return (again)

The issue was elsewhere nevermind
This commit is contained in:
FIGBERT 2023-08-09 11:31:53 -07:00
parent 80c8cd62ef
commit a55f78d628
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) 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}