Skip to content

Commit

Permalink
fix: daemon mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sgpublic committed Nov 8, 2022
1 parent de44adb commit 93fa360
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/gocq/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ func Main() {
switch {
case base.LittleH:
base.Help()
case base.LittleWD != "":
case base.LittleD:
server.Daemon()
}
if base.LittleWD != "" {
err := os.Chdir(base.LittleWD)
if err != nil {
log.Fatalf("重置工作目录时出现错误: %v", err)
}
case base.LittleD:
server.Daemon()
}
base.Init()

Expand Down

0 comments on commit 93fa360

Please sign in to comment.