mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 17:27:16 +00:00
Update run.go
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ManualInterruptErr = fmt.Errorf("signal: interrupt")
|
var ErrManualInterrupt = fmt.Errorf("signal: interrupt")
|
||||||
|
|
||||||
// runCmd represents the run command
|
// runCmd represents the run command
|
||||||
var runCmd = &cobra.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.
|
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 != nil {
|
||||||
if err.Error() == ManualInterruptErr.Error() {
|
if err.Error() == ErrManualInterrupt.Error() {
|
||||||
log.Debug().Msg(("Process was terminated manually by the user"))
|
log.Debug().Msg(("Process was terminated manually by the user"))
|
||||||
os.Exit(1)
|
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.
|
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 != nil {
|
||||||
if err.Error() == ManualInterruptErr.Error() {
|
if err.Error() == ErrManualInterrupt.Error() {
|
||||||
log.Debug().Msg(("Process was terminated manually by the user"))
|
log.Debug().Msg(("Process was terminated manually by the user"))
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user