mirror of https://github.com/Hilbis/Hilbish
fix: initialize lua api before handling signals (fixes #236)
parent
f97a04179d
commit
e2cf417144
4
main.go
4
main.go
|
@ -115,9 +115,11 @@ func main() {
|
||||||
os.Setenv("SHELL", os.Args[0])
|
os.Setenv("SHELL", os.Args[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
go handleSignals()
|
|
||||||
lr = newLineReader("", false)
|
lr = newLineReader("", false)
|
||||||
luaInit()
|
luaInit()
|
||||||
|
|
||||||
|
go handleSignals()
|
||||||
|
|
||||||
// If user's config doesn't exixt,
|
// If user's config doesn't exixt,
|
||||||
if _, err := os.Stat(defaultConfPath); os.IsNotExist(err) && *configflag == defaultConfPath {
|
if _, err := os.Stat(defaultConfPath); os.IsNotExist(err) && *configflag == defaultConfPath {
|
||||||
// Read default from current directory
|
// Read default from current directory
|
||||||
|
|
Loading…
Reference in New Issue