Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ var (
)

var bundleValidateCommand = cli.Command{
Name: "validate",
Usage: "validate a OCI bundle",
Flags: bundleValidateFlags,
Name: "validate",
Usage: "validate a OCI bundle",
Flags: bundleValidateFlags,
Before: before,
Action: func(context *cli.Context) error {
inputPath := context.String("path")
Expand Down Expand Up @@ -170,6 +170,10 @@ func checkProcess(process rspec.Process, rootfs string) {
}
}

if len(process.Args) < 1 {
logrus.Fatalf("args should not be empty")
}

for index := 0; index < len(process.Capabilities); index++ {
capability := process.Capabilities[index]
if !capValid(capability) {
Expand Down