Skip to content

Commit b23a2fb

Browse files
committed
fix(get.py): Fix system check
1 parent 26218d4 commit b23a2fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/get.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def unpack(filename, destination, force_extract, checksum): # noqa: C901
261261
shutil.move(dirname, rename_to)
262262

263263
# Add execute permission to esptool on non-Windows platforms
264-
if rename_to.startswith("esptool") and "CYGWIN_NT" not in sys_name:
264+
if rename_to.startswith("esptool") and "CYGWIN_NT" not in sys_name and "Windows" not in sys_name:
265265
st = os.stat(os.path.join(destination, rename_to, "esptool"))
266266
os.chmod(os.path.join(destination, rename_to, "esptool"), st.st_mode | 0o111)
267267

0 commit comments

Comments
 (0)