mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 17:44:05 +08:00
opt some
This commit is contained in:
parent
48de925bb3
commit
3ef13accf7
@ -156,11 +156,11 @@ func init() {
|
|||||||
func InnerPath(arg ...string) (dir, file string) {
|
func InnerPath(arg ...string) (dir, file string) {
|
||||||
p := strings.TrimPrefix(path.Join(arg...), kit.Path("")+ice.PS)
|
p := strings.TrimPrefix(path.Join(arg...), kit.Path("")+ice.PS)
|
||||||
if list := strings.Split(p, ice.PS); strings.HasPrefix(p, "usr/") {
|
if list := strings.Split(p, ice.PS); strings.HasPrefix(p, "usr/") {
|
||||||
return path.Join(list[:2]...)+ice.PS, path.Join(list[2:]...)
|
return path.Join(list[:2]...) + ice.PS, path.Join(list[2:]...)
|
||||||
} else if strings.HasPrefix(p, ".ish/pluged/") {
|
} else if strings.HasPrefix(p, ".ish/pluged/") {
|
||||||
return path.Join(list[:5]...)+ice.PS, path.Join(list[5:]...)
|
return path.Join(list[:5]...) + ice.PS, path.Join(list[5:]...)
|
||||||
} else {
|
} else {
|
||||||
return list[0]+ice.PS, path.Join(list[1:]...)
|
return list[0] + ice.PS, path.Join(list[1:]...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func PlugAction() ice.Actions {
|
func PlugAction() ice.Actions {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user