Skip to content

Commit

Permalink
fix(get.py): Fix system check
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Sep 19, 2024
1 parent 26218d4 commit b23a2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def unpack(filename, destination, force_extract, checksum): # noqa: C901
shutil.move(dirname, rename_to)

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

Expand Down

0 comments on commit b23a2fb

Please sign in to comment.