mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Only delete theme folder if it has been created
If an exception is raised before the folder is created, then this `ensure` block is still run
This commit is contained in:
parent
148bfc9be5
commit
105359e54a
@ -44,7 +44,7 @@ class ThemeStore::GitImporter
|
|||||||
return Discourse::Utils.execute_command("git", "diff", "--staged")
|
return Discourse::Utils.execute_command("git", "diff", "--staged")
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
FileUtils.rm_rf local_temp_folder
|
FileUtils.rm_rf local_temp_folder if local_temp_folder
|
||||||
end
|
end
|
||||||
|
|
||||||
def commits_since(hash)
|
def commits_since(hash)
|
||||||
|
Loading…
Reference in New Issue
Block a user