add exit code to run command

This commit is contained in:
Maidul Islam
2023-08-04 12:10:46 -04:00
parent 3fe592686a
commit 24d23e89d0

View File

@@ -144,12 +144,14 @@ var runCmd = &cobra.Command{
err = executeMultipleCommandWithEnvs(command, len(secretsByKey), env)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
} else {
err = executeSingleCommandWithEnvs(args, len(secretsByKey), env)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}
},