Fix arguments of sed command for Mac OS.

This commit is contained in:
Kazunori Sakamoto 2014-12-22 09:52:16 +09:00
parent 25e50df1e5
commit e4e6621bbd

View file

@ -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