dockerfile可预览

This commit is contained in:
xxq250 2023-02-28 16:03:33 +08:00
parent 2842df87c6
commit a80b4d954e
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ if @project.forge?
is_dir = @sub_entries.is_a?(Array)
file_name = entry['name']
file_type = file_name.starts_with?('.') ? file_name[1..-1] : File.extname(file_name.to_s)[1..-1]
direct_download = file_name.to_s.downcase != "Makefile".downcase && download_type(file_type)
direct_download = ["makefile","dockerfile"].exclude?(file_name.to_s.downcase) && download_type(file_type)
image_type = image_type?(file_type)
json.name file_name
json.sha entry['sha']