Suggest usable call when exec files lack shebang on Windows
Resolves Issue #686
This commit is contained in:
parent
56b4a7e506
commit
16bc739ce7
|
@ -64,6 +64,8 @@ def _message(path: str) -> None:
|
|||
f'{path}: marked executable but has no (or invalid) shebang!\n'
|
||||
f" If it isn't supposed to be executable, try: "
|
||||
f'`chmod -x {shlex.quote(path)}`\n'
|
||||
f' If on Windows, you may also need to: '
|
||||
f'`git add --chmod=-x {shlex.quote(path)}`\n'
|
||||
f' If it is supposed to be executable, double-check its shebang.',
|
||||
file=sys.stderr,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue