1
0
Fork 0
forked from Mirrors/gomuks

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 {
defer close(updates)
// setup package dir
os.Setenv("GOMUKS_ROOT", conf.OutputDir)
updates <- exportDirSet{dir: conf.OutputDir}