If we're going to use Launchy, let's use Dir.chdir

This commit is contained in:
Nick Quaranto 2013-01-01 19:46:56 -05:00
parent f7eacb7666
commit 0776078487
1 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,9 @@ namespace :site do
# Generate the site in server mode. # Generate the site in server mode.
puts "Running Jekyll..." 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 end
desc "Commit the local site to the gh-pages branch and publish to GitHub Pages" desc "Commit the local site to the gh-pages branch and publish to GitHub Pages"