mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +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/*")
|
FileUtils.rm_f Dir.glob("#{Dir.pwd}/features/addons/*")
|
||||||
available_addons.each do |addon|
|
available_addons.each do |addon|
|
||||||
feature_path = "addons/#{addon}/features"
|
feature_path = "addons/#{addon}/features"
|
||||||
|
next unless Dir.exist? feature_path
|
||||||
FileUtils.copy_entry("#{Dir.pwd}/#{feature_path}",
|
FileUtils.copy_entry("#{Dir.pwd}/#{feature_path}",
|
||||||
"#{Dir.pwd}/features/addons/#{addon}")
|
"#{Dir.pwd}/features/addons/#{addon}")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue