Browse files

Use clean, non-Bundler env when packaging

Without this we can get into Bundler-problems when trying to `cd` into
the Homebrew directory. Why? Because computers.

[ci skip]
  • Loading branch information...
1 parent da098b7 commit 5be8bf0f89e02ded84fb29946464537d2fe36a50 @stevenharman committed Apr 9, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 Rakefile
3 Rakefile
@@ -39,7 +39,8 @@ namespace :standalone do
task :homebrew do
- Dir.chdir `brew --prefix`.chomp do
+ brew_dir = Bundler.with_clean_env { `brew --prefix` }.chomp
+ Dir.chdir brew_dir do
sh 'git checkout -q master'
sh 'git pull -q origin master'

0 comments on commit 5be8bf0

Please sign in to comment.