Be explicit about 'in-place'
authorJohann <johannkoenig@google.com>
Fri, 4 May 2012 23:12:22 +0000 (16:12 -0700)
committerJohann <johannkoenig@google.com>
Sat, 5 May 2012 00:45:14 +0000 (17:45 -0700)
On darwin, sed expects an argument for '-i'. Make it empty.

Change-Id: I5dc6cdf667a754b2624f1767eb6e8025df48e308

tools/ftfy.sh

index 95fd397..c5cfdea 100755 (executable)
@@ -34,7 +34,7 @@ vpx_style() {
          --align-pointer=name \
          --indent-preprocessor --convert-tabs --indent-labels \
          --suffix=none --quiet "$@"
-  sed -i 's/[[:space:]]\{1,\},/,/g' "$@"
+  sed -i "" 's/[[:space:]]\{1,\},/,/g' "$@"
 }