1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-03-18 21:24:22 +08:00
parent 1abaf50c40
commit a874d3b0cc
3 changed files with 2 additions and 3 deletions

View File

@ -149,7 +149,6 @@ const (
SRC_TEMPLATE = ice.SRC_TEMPLATE
USR_ICEBERGS = ice.USR_ICEBERGS
USR_PUBLISH = ice.USR_PUBLISH
USR_PORTAL = ice.USR_PORTAL
USR_LOCAL = ice.USR_LOCAL
USR_LOCAL_WORK = ice.USR_LOCAL_WORK
USR_LOCAL_IMAGE = "usr/local/image/"

View File

@ -124,7 +124,6 @@ const ( // DIR
USR_RELEASE = "usr/release/"
USR_PROGRAM = "usr/program/"
USR_GEOAREA = "usr/geoarea/"
USR_PORTAL = "usr/portal/"
USR_ICONS = "usr/icons/"
USR_LOCAL = "usr/local/"
@ -149,6 +148,7 @@ const ( // DIR
VAR_FILE = "var/file/"
VAR_PROXY = "var/proxy/"
VAR_TRASH = "var/trash/"
VAR_PORTAL = "var/portal/"
BIN_ICE_BIN = "bin/ice.bin"
ETC_INIT_SHY = "etc/init.shy"
ETC_LOCAL_SHY = "etc/local.shy"

View File

@ -72,7 +72,7 @@ func init() {
Index.MergeCommands(ice.Commands{
PORTAL: {Name: "portal path auto", Help: "官网", Role: aaa.VOID, Actions: ice.MergeActions(ice.Actions{
ctx.RUN: {Hand: func(m *ice.Message, arg ...string) {
if p := path.Join(ice.USR_PORTAL, path.Join(arg...)); (m.Option(ice.DEBUG) == ice.TRUE || !nfs.ExistsFile(m, p)) && aaa.Right(m.Spawn(), arg) {
if p := path.Join(ice.VAR_PORTAL, path.Join(arg...)); (m.Option(ice.DEBUG) == ice.TRUE || !nfs.ExistsFile(m, p)) && aaa.Right(m.Spawn(), arg) {
ctx.Run(m, arg...)
m.Cmd(nfs.SAVE, p, ice.Maps{nfs.CONTENT: m.FormatsMeta(nil), nfs.DIR_ROOT: ""})
} else {