mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
377b8937a0
commit
2ba45e442f
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ def _install_hook_script(
|
|||
# bash in "POSIXLY_CORRECT" mode which still supports the features we
|
||||
# use: subshells / arrays
|
||||
if sys.platform == 'win32': # pragma: win32 cover
|
||||
before = before.replace("#!/usr/bin/env bash", "#!/bin/sh", 1)
|
||||
before = before.replace('#!/usr/bin/env bash', '#!/bin/sh', 1)
|
||||
|
||||
hook_file.write(before + TEMPLATE_START)
|
||||
hook_file.write(f'INSTALL_PYTHON={shlex.quote(sys.executable)}\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue