This commit is contained in:
BoHung Chiu 2021-05-19 22:27:14 +08:00
parent dfe18928d8
commit 7233a75636
1 changed files with 4 additions and 4 deletions

View File

@ -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