apparently newlines don't work with ruby 1.8
This commit is contained in:
parent
58a6777ee4
commit
5476bc05f7
|
@ -5,7 +5,7 @@ trap("TSTP") do
|
|||
fork do
|
||||
require "open3"
|
||||
first_run = true
|
||||
Open3.popen3(%Q{cd "#{Dir.pwd}" && mm-build | grep FORCED}) do |stdin, stdout, stderr|
|
||||
Open3.popen3(%Q{cd "#{Dir.pwd}" && #{File.join(File.dirname(__FILE__), "mm-build")} | grep FORCED}) do |stdin, stdout, stderr|
|
||||
puts "\n== Building the site..."
|
||||
stdout.readlines.each do |l|
|
||||
puts "== Updated:" if first_run
|
||||
|
|
|
@ -29,8 +29,7 @@ module Middleman
|
|||
|
||||
def self.file(name, *args, &block)
|
||||
if (args[0] === args[1])
|
||||
args[1] = args[0].gsub("#{File.basename(Middleman::Base.views)}/", "")
|
||||
.gsub("#{File.basename(Middleman::Base.public)}/", "")
|
||||
args[1] = args[0].gsub("#{File.basename(Middleman::Base.views)}/", "").gsub("#{File.basename(Middleman::Base.public)}/", "")
|
||||
end
|
||||
super(name, *args, &block)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue