Skip to content

Commit

Permalink
Fix #544
Browse files Browse the repository at this point in the history
Signed-off-by: ashpect <ashishndiitr@gmail.com>
  • Loading branch information
ashpect committed Aug 20, 2023
1 parent 908b2fa commit 872c669
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/imgpkg/cmd/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,9 @@ func (po *PullOptions) validate() error {
if po.BundleRecursiveFlags.Recursive && len(po.ImageFlags.Image) > 0 {
return fmt.Errorf("Cannot use --recursive (-r) flag when pulling a bundle")
}

if !po.ImageIsBundleCheck && len(po.BundleFlags.Bundle) != 0 {
return fmt.Errorf("Cannot set --image-is-bundle-check while using -b flag")
}
return nil
}

0 comments on commit 872c669

Please sign in to comment.