浏览代码

Minor template adjustment for readability

Tianon Gravi 7 年之前
父节点
当前提交
b60d7b0e89
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .template-helpers/generate-dockerfile-links-partial.tmpl

+ 1 - 1
.template-helpers/generate-dockerfile-links-partial.tmpl

@@ -29,7 +29,7 @@ This template defines the "Supported tags and Dockerfile links" portion of an im
 		- {{- "\t" -}}
 		{{- if $isGitHub -}} [ {{- end -}}
 		{{- $dir := .ArchDirectory $arch -}}
-		{{- $dockerfilePath := ternary "Dockerfile" (join "/" $dir "Dockerfile") (eq $dir ".") -}}
+		{{- $dockerfilePath := eq $dir "." | ternary "Dockerfile" (join "/" $dir "Dockerfile") -}}
 		` {{- $e.Tags | join "`, `" -}} ` (* {{- $dockerfilePath -}} *)
 		{{- $gitCommit := $e.ArchGitCommit $arch -}}
 		{{- if $isGitHub -}} ]( {{- $repoUrlBase -}} /blob/ {{- $gitCommit -}} / {{- $dockerfilePath -}} ) {{- end -}}