Permalink
Browse files

Remove quotes from $modified_files

  • Loading branch information...
1 parent 682fab6 commit cbb724474f3794495e751a3ac0d42870acd45a0a @jakeboxer committed Jul 12, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 xcode-strip.sh
View
@@ -1,9 +1,10 @@
#!/bin/sh
-# I stole this from http://www.wezm.net/technical/2011/08/strip-trailing-whitespace-xcode-4/
-# Many thanks to Wesley Moore!
+# I stole this from:
+# http://www.wezm.net/technical/2011/08/strip-trailing-whitespace-xcode-4/
+# and modified it slightly. Many thanks to Wesley Moore!
modified_files=`git ls-files --modified '*.[hm]'`
if [[ -n "$modified_files" ]]; then
- sed -i '.bak' 's/[[:space:]]*$//' "$modified_files"
-fi
+ sed -i '.bak' 's/[[:space:]]*$//' $modified_files
+fi

0 comments on commit cbb7244

Please sign in to comment.