program: Skip warning inside docker
This commit is contained in:
parent
f674e50e10
commit
ee330682d9
1 changed files with 4 additions and 6 deletions
|
|
@ -39,13 +39,11 @@ func NewProgram() Program {
|
|||
return errUserIsNotRoot
|
||||
}
|
||||
|
||||
// warn when not using the distillery excutable
|
||||
if context.Description.Requirements.NeedsDistillery {
|
||||
dis := context.Environment
|
||||
if !dis.UsingDistilleryExecutable() {
|
||||
// when not running inside docker and we need a distillery
|
||||
// then we should warn if we are not using the distillery executable.
|
||||
if dis := context.Environment; !context.Args.Flags.InternalInDocker && context.Description.Requirements.NeedsDistillery && !dis.UsingDistilleryExecutable() {
|
||||
context.EPrintf(warnNoDeployWdcli, core.Executable, dis.ExecutablePath())
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue