From 5c7cec0c817c69cb161c8a651c941b39f5620469 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Tue, 27 Aug 2024 20:11:27 +0400 Subject: [PATCH] Update run.go --- cli/packages/cmd/run.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/packages/cmd/run.go b/cli/packages/cmd/run.go index bec44ba6c..5022d3245 100644 --- a/cli/packages/cmd/run.go +++ b/cli/packages/cmd/run.go @@ -22,7 +22,7 @@ import ( "github.com/spf13/cobra" ) -var ManualInterruptErr = fmt.Errorf("signal: interrupt") +var ErrManualInterrupt = fmt.Errorf("signal: interrupt") // runCmd represents the run command var runCmd = &cobra.Command{ @@ -252,7 +252,7 @@ func executeSingleCommandWithEnvs(args []string, secretsCount int, env []string, err := startCmd() // Initial command start, if no --watch flag is passed, it will work like in old versions of infisical CLI. if err != nil { - if err.Error() == ManualInterruptErr.Error() { + if err.Error() == ErrManualInterrupt.Error() { log.Debug().Msg(("Process was terminated manually by the user")) os.Exit(1) } @@ -349,7 +349,7 @@ func executeMultipleCommandWithEnvs(fullCommand string, secretsCount int, env [] err := startCmd() // Initial command start, if no --watch flag is passed, it will work like in old versions of infisical CLI. if err != nil { - if err.Error() == ManualInterruptErr.Error() { + if err.Error() == ErrManualInterrupt.Error() { log.Debug().Msg(("Process was terminated manually by the user")) os.Exit(1) }