From 91b4876f8c6298200171433daabe8ddb54e532b3 Mon Sep 17 00:00:00 2001 From: orchardcc <45976390+orchardcc@users.noreply.github.com> Date: Fri, 1 May 2020 14:06:07 -0400 Subject: [PATCH] Fixes #76 --- lib/jekyll-remote-theme/munger.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/jekyll-remote-theme/munger.rb b/lib/jekyll-remote-theme/munger.rb index 0b69c1c..63d2d1d 100644 --- a/lib/jekyll-remote-theme/munger.rb +++ b/lib/jekyll-remote-theme/munger.rb @@ -20,10 +20,10 @@ def munge! end Jekyll.logger.info LOG_KEY, "Using theme #{theme.name_with_owner}" - return theme if munged? - - downloader.run - configure_theme + unless munged? + downloader.run + configure_theme + end enqueue_theme_cleanup theme @@ -59,8 +59,6 @@ def configure_theme def enqueue_theme_cleanup at_exit do - return unless munged? && downloader.downloaded? - Jekyll.logger.debug LOG_KEY, "Cleaning up #{theme.root}" FileUtils.rm_rf theme.root end