mirror of
https://github.com/containers/skopeo.git
synced 2025-08-12 19:56:17 +00:00
warn about ineffective destination opts in sync cmd
Signed-off-by: Erol Keskin <erolkeskin.dev@gmail.com>
This commit is contained in:
parent
0a42c33af9
commit
166b587a77
@ -552,6 +552,8 @@ func (opts *syncOptions) run(args []string, stdout io.Writer) (retErr error) {
|
|||||||
return errors.New("sync from 'dir' to 'dir' not implemented, consider using rsync instead")
|
return errors.New("sync from 'dir' to 'dir' not implemented, consider using rsync instead")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
opts.destImage.warnAboutIneffectiveOptions(transports.Get(opts.destination))
|
||||||
|
|
||||||
imageListSelection := copy.CopySystemImage
|
imageListSelection := copy.CopySystemImage
|
||||||
if opts.all {
|
if opts.all {
|
||||||
imageListSelection = copy.CopyAllImages
|
imageListSelection = copy.CopyAllImages
|
||||||
|
Loading…
Reference in New Issue
Block a user