Fix update script target directory
This commit is contained in:
parent
c7078be407
commit
8587f01caa
1 changed files with 1 additions and 2 deletions
|
@ -41,10 +41,9 @@ def update():
|
||||||
for inner_path in inner_paths:
|
for inner_path in inner_paths:
|
||||||
if ".." in inner_path:
|
if ".." in inner_path:
|
||||||
continue
|
continue
|
||||||
inner_path = inner_path.replace("\\", "/") # Make sure we have unix path
|
inner_path = inner_path.replace("\\", "/").strip("/") # Make sure we have unix path
|
||||||
print(".", end=" ")
|
print(".", end=" ")
|
||||||
dest_path = source_path + "/" + re.sub("^(core|platform/[^/]+/)/", "", inner_path)
|
dest_path = source_path + "/" + re.sub("^(core|platform/[^/]+/)/", "", inner_path)
|
||||||
dest_path = dest_path.lstrip("/")
|
|
||||||
if not dest_path:
|
if not dest_path:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue