mirror of
https://github.com/esphome/esphome.git
synced 2026-10-03 17:55:57 +00:00
[script] Make pre-commit and helpers work on Windows (#16260)
Co-authored-by: Jonathan Swoboda <swoboda1337@users.noreply.github.com>
This commit is contained in:
co-authored by
Jonathan Swoboda
parent
85f33978e7
commit
29db5fa4bb
+1
-1
@@ -250,7 +250,7 @@ def lint_ext_check(fname):
|
||||
]
|
||||
)
|
||||
def lint_executable_bit(fname: Path) -> str | None:
|
||||
ex = EXECUTABLE_BIT[str(fname)]
|
||||
ex = EXECUTABLE_BIT[fname.as_posix()]
|
||||
if ex != 100644:
|
||||
return (
|
||||
f"File has invalid executable bit {ex}. If running from a windows machine please "
|
||||
|
||||
Reference in New Issue
Block a user