mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
add some
This commit is contained in:
parent
e008f4d417
commit
26e62a1b22
@ -174,7 +174,8 @@ func _dream_binary(m *ice.Message, p string) {
|
|||||||
if bin := path.Join(m.Option(cli.CMD_DIR), ice.BIN_ICE_BIN); nfs.Exists(m, bin) {
|
if bin := path.Join(m.Option(cli.CMD_DIR), ice.BIN_ICE_BIN); nfs.Exists(m, bin) {
|
||||||
return
|
return
|
||||||
} else if kit.IsUrl(p) || strings.HasPrefix(p, S()) {
|
} else if kit.IsUrl(p) || strings.HasPrefix(p, S()) {
|
||||||
m.Cmd(DREAM, DOWNLOAD, bin, kit.MergeURL2(p, kit.Format("/publish/ice.%s.%s", runtime.GOOS, runtime.GOARCH), ice.POD, m.Option(mdb.NAME)))
|
// m.Cmd(DREAM, DOWNLOAD, bin, kit.MergeURL2(p, kit.Format("/publish/ice.%s.%s", runtime.GOOS, runtime.GOARCH), ice.POD, m.Option(mdb.NAME)))
|
||||||
|
m.Cmd(DREAM, DOWNLOAD, bin, kit.MergeURL(p, cli.GOOS, runtime.GOOS, cli.GOARCH, runtime.GOARCH))
|
||||||
} else {
|
} else {
|
||||||
m.Cmd(nfs.LINK, bin, kit.Path(p))
|
m.Cmd(nfs.LINK, bin, kit.Path(p))
|
||||||
}
|
}
|
||||||
|
@ -228,7 +228,7 @@ func TableName(model string) string {
|
|||||||
}
|
}
|
||||||
if kit.IsIn(model, "sms", "equipment") {
|
if kit.IsIn(model, "sms", "equipment") {
|
||||||
|
|
||||||
} else if kit.HasSuffix(model, "y") {
|
} else if kit.HasSuffix(model, "y") && !kit.HasSuffix(model, "way") {
|
||||||
model = model[:len(model)-1] + "ies"
|
model = model[:len(model)-1] + "ies"
|
||||||
} else if kit.HasSuffix(model, "s") {
|
} else if kit.HasSuffix(model, "s") {
|
||||||
if !kit.HasSuffix(model, "os") {
|
if !kit.HasSuffix(model, "os") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user