diff --git a/tasks/nanoc.rake b/tasks/nanoc.rake index 7a0cf6b..efec64f 100644 --- a/tasks/nanoc.rake +++ b/tasks/nanoc.rake @@ -4,6 +4,7 @@ require "fileutils" require "lockf" build_dir = Ryo.from(YAML.load_file("./nanoc.yaml")).output_dir lockp = File.join Dir.getwd, "tmp", "build.lock" +FileUtils.mkdir_p File.dirname(lockp) FileUtils.touch(lockp) lockf = LockFile.new(lockp)