shell仅用于windows

This commit is contained in:
johlanse 2022-10-31 18:41:06 +08:00
parent 78fcf92ae2
commit 4d7b8586b6
1 changed files with 7 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import (
"os/exec"
"os/signal"
"path"
"runtime"
"strconv"
"sync"
"syscall"
@ -215,7 +216,12 @@ func main() {
if now {
do()
}
cli.RunCli()
if runtime.GOOS == "windows" {
cli.RunCli()
} else {
select {}
}
}
func do() {