Skip to content

Commit 56d017b

Browse files
cfergeaupraveenkumar
authored andcommitted
podman-env: Add missing '--root'
When using `crc podman-env --root`, the printed instructions are missing `--root`. This fixes #3492
1 parent 8c4fdb5 commit 56d017b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmd/crc/cmd/podman_env.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ func runPodmanEnv() error {
5757
} else {
5858
fmt.Println(shell.GetEnvString(userShell, "DOCKER_HOST", "npipe:////./pipe/crc-podman"))
5959
}
60-
fmt.Println(shell.GenerateUsageHintWithComment(userShell, "crc podman-env"))
60+
if root {
61+
fmt.Println(shell.GenerateUsageHintWithComment(userShell, "crc podman-env --root"))
62+
} else {
63+
fmt.Println(shell.GenerateUsageHintWithComment(userShell, "crc podman-env"))
64+
}
65+
6166
return nil
6267
}
6368

0 commit comments

Comments
 (0)