1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00

opt website

This commit is contained in:
harveyshao 2022-02-10 17:52:01 +08:00
parent 1563fd7ee6
commit 84ae0c28fa

View File

@ -33,6 +33,7 @@ func _system_cmd(m *ice.Message, arg ...string) *exec.Cmd {
cmd.Env = append(cmd.Env, kit.Format("%s=%s", env[i], env[i+1]))
if env[i] == PATH {
if file := _system_find(m, arg[0], strings.Split(env[i+1], ice.DF)...); file != "" {
m.Debug("cmd: %v", file)
cmd.Path = file
break
}
@ -42,6 +43,7 @@ func _system_cmd(m *ice.Message, arg ...string) *exec.Cmd {
// // 定制目录
if buf, err := ioutil.ReadFile(ice.ETC_PATH); err == nil && len(buf) > 0 {
if file := _system_find(m, arg[0], strings.Split(string(buf), ice.NL)...); file != "" {
// m.Debug("cmd: %v", file)
// cmd.Path = file
// break
}