Env var to identify when in container shell
This commit is contained in:
@@ -40,6 +40,8 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
c.Stdout = os.Stdout
|
||||
c.Stderr = os.Stderr
|
||||
|
||||
os.Setenv("WW_CONTAINER_SHELL", "true")
|
||||
|
||||
if err := c.Run(); err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user