forked from x/icebergs
opt some
This commit is contained in:
parent
48de925bb3
commit
3ef13accf7
@ -156,11 +156,11 @@ func init() {
|
||||
func InnerPath(arg ...string) (dir, file string) {
|
||||
p := strings.TrimPrefix(path.Join(arg...), kit.Path("")+ice.PS)
|
||||
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/") {
|
||||
return path.Join(list[:5]...)+ice.PS, path.Join(list[5:]...)
|
||||
return path.Join(list[:5]...) + ice.PS, path.Join(list[5:]...)
|
||||
} else {
|
||||
return list[0]+ice.PS, path.Join(list[1:]...)
|
||||
return list[0] + ice.PS, path.Join(list[1:]...)
|
||||
}
|
||||
}
|
||||
func PlugAction() ice.Actions {
|
||||
|
Loading…
x
Reference in New Issue
Block a user