From 8587f01caafe27e24281465156c8c0ac71d61063 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Tue, 9 Apr 2019 16:21:39 +0200 Subject: [PATCH] Fix update script target directory --- update.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/update.py b/update.py index a9cb42c7..3f918b7b 100644 --- a/update.py +++ b/update.py @@ -41,10 +41,9 @@ def update(): for inner_path in inner_paths: if ".." in inner_path: 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=" ") dest_path = source_path + "/" + re.sub("^(core|platform/[^/]+/)/", "", inner_path) - dest_path = dest_path.lstrip("/") if not dest_path: continue