From 1a333cbd34469a2eb051ca15b75d577b7964d586 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sun, 22 Apr 2012 22:11:16 +0800 Subject: [PATCH] Avoid breaking when no revision file exists. --- tasks/headers.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/headers.rake b/tasks/headers.rake index a8ebfaa..00019aa 100644 --- a/tasks/headers.rake +++ b/tasks/headers.rake @@ -32,7 +32,7 @@ namespace :dream do task :update_revision do Dir.chdir(PROJECT_PATH) do revision_path = File.join(SOURCE_PATH, "Revision.h") - current_revision = File.read(revision_path) + current_revision = File.read(revision_path) rescue "" buf = StringIO.new buf.puts "// This file is automatically generated"