mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
win
This commit is contained in:
parent
6e951ca385
commit
879fc62971
@ -48,11 +48,13 @@ func init() {
|
|||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 【非容器alpine系统时结束(测试用,二进制部署时应注释掉)】
|
// 【alpine以外未足够测试,暂且默认支持alpine容器及window开发调试,可按需注释掉】
|
||||||
info, _ := cmn.MeasureHost()
|
if !cmn.IsWin() {
|
||||||
if info == nil || !cmn.ContainsIngoreCase(info.Platform, "alpine") {
|
info, _ := cmn.MeasureHost()
|
||||||
fmt.Printf("%s\n", info.Platform)
|
if info == nil || !cmn.ContainsIngoreCase(info.Platform, "alpine") {
|
||||||
os.Exit(0)
|
fmt.Printf("%s\n", info.Platform)
|
||||||
|
os.Exit(0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 其余参数仅支持linux
|
// 其余参数仅支持linux
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user