Fix case insensitive

This commit is contained in:
LoveSy 2021-10-26 18:41:08 +08:00
parent 03da90a5cf
commit e693655c46

View File

@ -48,11 +48,12 @@ jobs:
zip_name = "" zip_name = ""
with zipfile.ZipFile(out_file) as zip: with zipfile.ZipFile(out_file) as zip:
for f in zip.filelist: for f in zip.filelist:
if f.filename.__contains__(arch): if arch in f.filename.lower():
zip_name = f.filename zip_name = f.filename
if not os.path.isfile(zip_name): if not os.path.isfile(zip_name):
print(f"unzipping to {zip_name}", flush=True) print(f"unzipping to {zip_name}", flush=True)
zip.extract(f) zip.extract(f)
break
with zipfile.ZipFile(zip_name) as zip: with zipfile.ZipFile(zip_name) as zip:
if not os.path.isdir(arch): if not os.path.isdir(arch):