Fix bug.
This commit is contained in:
parent
dfe18928d8
commit
7233a75636
|
@ -19,10 +19,6 @@ if bundle_update_flag
|
|||
encode_file_text = file_text.encode("UTF-8", "UTF-8", invalid: :replace, replace: "???")
|
||||
next if (encode_file_text.include?("???") rescue true)
|
||||
info = JSON.parse(encode_file_text) rescue {}
|
||||
if !Dir.exist?(File.dirname(info_json_file))
|
||||
Bundler.with_clean_env{system ('cp -r '+ app_path + '/modules/ ' + folder)}
|
||||
next
|
||||
end
|
||||
flag = (info.count != 0 rescue false)
|
||||
if flag
|
||||
puts "Checking event_news widgets"
|
||||
|
@ -64,6 +60,10 @@ if bundle_update_flag
|
|||
puts e
|
||||
puts "There has some error when checking event_news widgets"
|
||||
end
|
||||
else
|
||||
if !Dir.exist?(File.dirname(info_json_file)) && Dir.exist?(File.dirname(File.dirname(info_json_file)))
|
||||
Bundler.with_clean_env{system ('cp -r '+ app_path + '/modules/ ' + folder)}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue