From b60d7b0e894cb76e9314522c3981342632d55643 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 25 Jul 2018 14:47:33 -0700 Subject: [PATCH] Minor template adjustment for readability --- .template-helpers/generate-dockerfile-links-partial.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.template-helpers/generate-dockerfile-links-partial.tmpl b/.template-helpers/generate-dockerfile-links-partial.tmpl index dbed7e71b..e43861593 100644 --- a/.template-helpers/generate-dockerfile-links-partial.tmpl +++ b/.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 -}}