mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
Fix arguments of sed command for Mac OS.
This commit is contained in:
parent
25e50df1e5
commit
e4e6621bbd
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ def fix_trailing_whitespace(argv):
|
|||
if bad_whitespace_files:
|
||||
for bad_whitespace_file in bad_whitespace_files:
|
||||
print('Fixing {0}'.format(bad_whitespace_file))
|
||||
local['sed']['-i', '-e', 's/[[:space:]]*$//', bad_whitespace_file]()
|
||||
local['sed']['-i', '', '-e', 's/[[:space:]]*$//', bad_whitespace_file]()
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue