Permalink
Browse files

Merge pull request #22 from azizmb/root_dir_fix

Changed chdir to block
  • Loading branch information...
2 parents 4e8adf6 + 384525c commit 864df13344b152552baacb05184a61046b08e7ee @purcell purcell committed Jun 27, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/slim_scrooge.rb
View
@@ -1,8 +1,9 @@
# Author: Stephen Sykes
begin
unless File.exists?(File.join(File.dirname(__FILE__), "../", "ext", "Makefile"))
- Dir.chdir(File.join(File.dirname(__FILE__), "../", "ext"))
- `rake`
+ Dir.chdir(File.join(File.dirname(__FILE__), "../", "ext")) do
+ `rake`
+ end
end
rescue Exception
end

0 comments on commit 864df13

Please sign in to comment.