aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-12-03 11:36:54 +0000
committerMark Longair <mhl@pobox.com>2013-12-03 14:04:25 +0000
commitaa521fc92857502598fb8b91fff6e8930f7eab05 (patch)
tree7c5903b34c12412ef916826c582b7dd21fc99e32 /lib/tasks
parent9e6810d0b86097e616192cf98554fc8ec664392a (diff)
Ensure that the lib/themes directory exists before installing to there
(An alternative would have been to add an empty lib/themes/.gitkeep file to this directory, but that makes ignoring the installed themes more complicated.)
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/themes.rake1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tasks/themes.rake b/lib/tasks/themes.rake
index 78ffe73be..7651145ca 100644
--- a/lib/tasks/themes.rake
+++ b/lib/tasks/themes.rake
@@ -84,6 +84,7 @@ namespace :themes do
end
def install_theme(theme_url, verbose, deprecated=false)
+ FileUtils.mkdir_p plugin_dir
deprecation_string = deprecated ? " using deprecated THEME_URL" : ""
theme_name = theme_url_to_theme_name theme_url
puts "Installing theme #{theme_name}#{deprecation_string} from #{theme_url}"