From 077607848723abed3d98810183dd265f73fbcec7 Mon Sep 17 00:00:00 2001 From: Nick Quaranto Date: Tue, 1 Jan 2013 19:46:56 -0500 Subject: [PATCH] If we're going to use Launchy, let's use Dir.chdir --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 60ba14d7..ff52d677 100644 --- a/Rakefile +++ b/Rakefile @@ -130,7 +130,9 @@ namespace :site do # Generate the site in server mode. puts "Running Jekyll..." - sh "cd site && #{File.expand_path('bin/jekyll', File.dirname(__FILE__))} --server" + Dir.chdir("site") do + sh "#{File.expand_path('bin/jekyll', File.dirname(__FILE__))} --server" + end end desc "Commit the local site to the gh-pages branch and publish to GitHub Pages"