mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-03 13:48:37 +00:00
Validate output before doing the work
Signed-off-by: French Ben <frenchben@docker.com>
This commit is contained in:
@@ -65,6 +65,13 @@ func build(args []string) {
|
||||
|
||||
log.Debugf("Outputs selected: %s", buildOut.String())
|
||||
|
||||
err := validateOutputs(buildOut)
|
||||
if err != nil {
|
||||
log.Errorf("Error parsing outputs: %v", err)
|
||||
buildCmd.Usage()
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if len(remArgs) == 0 {
|
||||
fmt.Println("Please specify a configuration file")
|
||||
buildCmd.Usage()
|
||||
|
||||
Reference in New Issue
Block a user