Skip to content

Commit

Permalink
Merge pull request #774 from mdeweerd/updateChmodHelp
Browse files Browse the repository at this point in the history
Add instruction to change executable mode on windows
  • Loading branch information
asottile committed May 26, 2022
2 parents 0a88f14 + bd70bc1 commit 08792de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pre_commit_hooks/check_shebang_scripts_are_executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def _message(path: str) -> None:
f'{path}: has a shebang but is not marked executable!\n'
f' If it is 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 not supposed to be executable, double-check its shebang '
f'is wanted.\n',
file=sys.stderr,
Expand Down

0 comments on commit 08792de

Please sign in to comment.