From 4a2a1fa62bf91a87dc7fc90be42de98f37b63e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Fri, 13 Jan 2017 02:12:44 +0200 Subject: [PATCH] Fix unzip() handling of --strip 1 implementation. --- emsdk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emsdk b/emsdk index df051a0..c746f7f 100755 --- a/emsdk +++ b/emsdk @@ -328,8 +328,11 @@ def unzip(source_filename, dest_dir, unpack_even_if_exists=False): if common_subdir == None: common_subdir = words[0] elif common_subdir != words[0]: - common_subdir = '' + common_subdir = None break + else: + common_subdir = None + break unzip_to_dir = dest_dir if common_subdir: