From c775ed2604603379d67c06d2ca25946f5b78805a Mon Sep 17 00:00:00 2001 From: 0x5459 <0x5459@protonmail.com> Date: Mon, 31 Jul 2023 14:57:46 +0800 Subject: [PATCH] fix: check flag really do it --- .../cmd/damocles-manager/internal/util_sealer_sectors.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/damocles-manager/cmd/damocles-manager/internal/util_sealer_sectors.go b/damocles-manager/cmd/damocles-manager/internal/util_sealer_sectors.go index abb6bd077..c4613b94f 100644 --- a/damocles-manager/cmd/damocles-manager/internal/util_sealer_sectors.go +++ b/damocles-manager/cmd/damocles-manager/internal/util_sealer_sectors.go @@ -126,7 +126,10 @@ var utilSealerSectorsAbortCmd = &cli.Command{ if count := cctx.Args().Len(); count < 2 { return fmt.Errorf("both miner actor id & sector number are required, only %d args provided", count) } - + if !cctx.Bool("really-do-it") { + fmt.Println("If you know what you're doing, Pass --really-do-it to actually execute this action") + return nil + } miner, err := ShouldActor(cctx.Args().Get(0), true) if err != nil { return fmt.Errorf("invalid miner actor id: %w", err)