Don't let .DS_Store files break script/bootstrap

Fixes boxen/our-boxen#512

In particular, I have seen problems with the following hidden files that Mac creates:
- `.DS_Store`
- `.!59508!.DS_Store`
- `.!59554!.DS_Store`
This commit is contained in:
Idris Mokhtarzada 2014-03-30 18:21:38 -04:00
parent 163e412305
commit fec988ebda

View file

@ -27,4 +27,4 @@ set -e
/usr/bin/bundle install --binstubs bin --path .bundle --quiet "$@"
# Fix the binstubs to use system ruby
find bin -type f -print0 | xargs -0 sed -i '' 's|/usr/bin/env ruby|/usr/bin/ruby|g'
find bin -not -path 'bin/\.*' -type f -print0 | xargs -0 sed -i '' 's|/usr/bin/env ruby|/usr/bin/ruby|g'