mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
escape if no feature folder present
This commit is contained in:
parent
c6d585bc57
commit
952173fbd6
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ class AddonsSpecLoader
|
|||
FileUtils.rm_f Dir.glob("#{Dir.pwd}/features/addons/*")
|
||||
available_addons.each do |addon|
|
||||
feature_path = "addons/#{addon}/features"
|
||||
next unless Dir.exist? feature_path
|
||||
FileUtils.copy_entry("#{Dir.pwd}/#{feature_path}",
|
||||
"#{Dir.pwd}/features/addons/#{addon}")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue