From 5e0341c9b3942be2a78f1d7981df878bb5e2f9b8 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 25 Jan 2015 19:10:28 -0800 Subject: [PATCH] Only write the latest_version.txt file if it's non-beta/alpha/rc. --- Rakefile | 2 +- site/latest_version.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 1b3e7e67..b0d82ac5 100644 --- a/Rakefile +++ b/Rakefile @@ -253,7 +253,7 @@ namespace :site do desc "Write the site latest_version.txt file" task :version_file do - File.open('site/latest_version.txt', 'wb') { |f| f.write(version) } + File.open('site/latest_version.txt', 'wb') { |f| f.puts(version) } unless version =~ /(beta|rc|alpha)/i end namespace :releases do diff --git a/site/latest_version.txt b/site/latest_version.txt index a4db534a..aedc15bb 100644 --- a/site/latest_version.txt +++ b/site/latest_version.txt @@ -1 +1 @@ -2.5.3 \ No newline at end of file +2.5.3