mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-17 19:37:07 +02:00
Check if command is nil before optimizing
MAINTAINER returns nil since it's deprecated, so we should make sure we don't add to the list of commands to optimize.
This commit is contained in:
@@ -155,6 +155,9 @@ func (s *stageBuilder) build() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if command == nil {
|
||||
continue
|
||||
}
|
||||
cmds = append(cmds, command)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user