From b0389e133725ed7380d85f0016417d518b75f603 Mon Sep 17 00:00:00 2001 From: Brian Phan Date: Tue, 6 Dec 2022 09:24:01 -0800 Subject: [PATCH] Set WW_CONTAINER_SHELL to Container Name --- internal/app/wwctl/container/shell/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/wwctl/container/shell/main.go b/internal/app/wwctl/container/shell/main.go index 89fa0058..04a095ec 100644 --- a/internal/app/wwctl/container/shell/main.go +++ b/internal/app/wwctl/container/shell/main.go @@ -40,7 +40,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error { c.Stdout = os.Stdout c.Stderr = os.Stderr - os.Setenv("WW_CONTAINER_SHELL", "1") + os.Setenv("WW_CONTAINER_SHELL", containerName) if err := c.Run(); err != nil { fmt.Println(err)