From 1f508cc30f3c1caadea5c648158880eacfe9b113 Mon Sep 17 00:00:00 2001 From: Joseph Richey Date: Sun, 11 Feb 2018 23:38:19 -0800 Subject: cmd/fscrypt: don't show build time if not set --- cmd/fscrypt/strings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/fscrypt/strings.go b/cmd/fscrypt/strings.go index fb79c38..c680d03 100644 --- a/cmd/fscrypt/strings.go +++ b/cmd/fscrypt/strings.go @@ -110,7 +110,7 @@ Options: {{if .Version}}Version: ` + indent + `{{.Version}} -{{end}}{{if .Compiled}}Compiled: +{{end}}{{if not .Compiled.IsZero}}Compiled: ` + indent + `{{.Compiled}} {{end}}{{if len .Authors}}Author{{with $length := len .Authors}}{{if ne 1 $length}}s{{end}}{{end}}:{{range .Authors}} -- cgit v1.2.3