Skip to content

Commit

Permalink
Merge pull request #77 from orchardcc/fix-76
Browse files Browse the repository at this point in the history
Fixes #76
  • Loading branch information
benbalter authored May 1, 2020
2 parents e8f3e6d + 91b4876 commit a3c6bc4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/jekyll-remote-theme/munger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a3c6bc4

Please sign in to comment.