Skip to content

Commit 7eae7f8

Browse files
committed
check for rsync flag
1 parent 5e015e5 commit 7eae7f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/pbm/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ func (app *pbmApp) buildConfigCmd() *cobra.Command {
368368
Use: "config [key]",
369369
Short: "Set, change or list the config",
370370
RunE: app.wrapRunE(func(cmd *cobra.Command, args []string) (fmt.Stringer, error) {
371+
if cfg.skipRestores && !cfg.rsync {
372+
return nil, errors.New("--skip-restores cannot be used without --force-resync")
373+
}
374+
371375
if len(args) == 1 {
372376
cfg.key = args[0]
373377
}

0 commit comments

Comments
 (0)