mirror of
https://shylinux.com/x/icebergs
synced 2025-04-29 02:29:22 +08:00
opt some
This commit is contained in:
parent
f4507d9a1a
commit
68cc665d54
@ -98,15 +98,15 @@ func init() {
|
|||||||
m.Sort(nfs.REPOS)
|
m.Sort(nfs.REPOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !m.IsCliUA() || strings.Contains(arg[0], ice.AT) || arg[1] == ice.SRC {
|
if !m.IsCliUA() || len(arg) > 0 && strings.Contains(arg[0], ice.AT) || len(arg) > 1 && arg[1] == ice.SRC {
|
||||||
if strings.Contains(arg[0], ice.AT) {
|
if len(arg) > 0 && strings.Contains(arg[0], ice.AT) {
|
||||||
ls := strings.Split(arg[0], ice.AT)
|
ls := strings.Split(arg[0], ice.AT)
|
||||||
_repos_cat(m, path.Join(ice.USR_LOCAL_REPOS, ls[0]), "master", ls[1], path.Join(arg[1:]...))
|
_repos_cat(m, path.Join(ice.USR_LOCAL_REPOS, ls[0]), "master", ls[1], path.Join(arg[1:]...))
|
||||||
m.RenderResult()
|
m.RenderResult()
|
||||||
} else if strings.HasPrefix(arg[1], "v") && strings.Contains(arg[1], ice.PT) {
|
} else if len(arg) > 1 && strings.HasPrefix(arg[1], "v") && strings.Contains(arg[1], ice.PT) {
|
||||||
_repos_cat(m, path.Join(ice.USR_LOCAL_REPOS, arg[0]), "master", arg[1], path.Join(arg[2:]...))
|
_repos_cat(m, path.Join(ice.USR_LOCAL_REPOS, arg[0]), "master", arg[1], path.Join(arg[2:]...))
|
||||||
m.RenderResult()
|
m.RenderResult()
|
||||||
} else if arg[1] == ice.SRC {
|
} else if len(arg) > 1 && arg[1] == ice.SRC {
|
||||||
_repos_cat(m, path.Join(ice.USR_LOCAL_REPOS, arg[0]), "master", "", path.Join(arg[1:]...))
|
_repos_cat(m, path.Join(ice.USR_LOCAL_REPOS, arg[0]), "master", "", path.Join(arg[1:]...))
|
||||||
m.RenderResult()
|
m.RenderResult()
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user