Skip to content

Commit

Permalink
podman-env: Add missing '--root'
Browse files Browse the repository at this point in the history
When using `crc podman-env --root`, the printed instructions are missing
`--root`.

This fixes #3492
  • Loading branch information
cfergeau authored and praveenkumar committed Jan 31, 2023
1 parent 8c4fdb5 commit 56d017b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/crc/cmd/podman_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ func runPodmanEnv() error {
} else {
fmt.Println(shell.GetEnvString(userShell, "DOCKER_HOST", "npipe:////./pipe/crc-podman"))
}
fmt.Println(shell.GenerateUsageHintWithComment(userShell, "crc podman-env"))
if root {
fmt.Println(shell.GenerateUsageHintWithComment(userShell, "crc podman-env --root"))
} else {
fmt.Println(shell.GenerateUsageHintWithComment(userShell, "crc podman-env"))
}

return nil
}

Expand Down

0 comments on commit 56d017b

Please sign in to comment.