Skip to content
Browse files

Changed chdir to block

This restores the older diretory
after running rake. Closes #19
  • Loading branch information...
1 parent 4e8adf6 commit 384525c9b1627da9c703365139cec202fdb53636 @azizmb azizmb committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/slim_scrooge.rb
View
5 lib/slim_scrooge.rb
@@ -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 384525c

Please sign in to comment.
Something went wrong with that request. Please try again.