From 06336ba7f45169056493ad19df31060d3af85172 Mon Sep 17 00:00:00 2001 From: Oliver Nicolaas Ponder Date: Fri, 26 Sep 2014 16:08:48 +0200 Subject: [PATCH] Fix some missing double-quotes around error messages for missing parameters. --- pkg/plugin/publish/docker.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/plugin/publish/docker.go b/pkg/plugin/publish/docker.go index f69ac1d4d..06141a2fc 100644 --- a/pkg/plugin/publish/docker.go +++ b/pkg/plugin/publish/docker.go @@ -46,11 +46,11 @@ type Docker struct { func (d *Docker) Write(f *buildfile.Buildfile, r *repo.Repo) { if len(d.DockerServer) == 0 || d.DockerServerPort == 0 || len(d.DockerVersion) == 0 || len(d.ImageName) == 0 { - f.WriteCmdSilent(`echo -e "Docker Plugin: Missing argument(s)"\n\n`) - if len(d.DockerServer) == 0 { f.WriteCmdSilent(`echo -e "\tdocker_server not defined in yaml`) } - if d.DockerServerPort == 0 { f.WriteCmdSilent(`echo -e "\tdocker_port not defined in yaml`) } - if len(d.DockerVersion) == 0 { f.WriteCmdSilent(`echo -e "\tdocker_version not defined in yaml`) } - if len(d.ImageName) == 0 { f.WriteCmdSilent(`echo -e "\timage_name not defined in yaml`) } + f.WriteCmdSilent(`echo -e "Docker Plugin: Missing argument(s)\n\n"`) + if len(d.DockerServer) == 0 { f.WriteCmdSilent(`echo -e "\tdocker_server not defined in yaml"`) } + if d.DockerServerPort == 0 { f.WriteCmdSilent(`echo -e "\tdocker_port not defined in yaml"`) } + if len(d.DockerVersion) == 0 { f.WriteCmdSilent(`echo -e "\tdocker_version not defined in yaml"`) } + if len(d.ImageName) == 0 { f.WriteCmdSilent(`echo -e "\timage_name not defined in yaml"`) } return }