fix(create): strip trailing slashes from --home

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
Luca Di Maio committed 2026-06-25 09:07:24 +02:00
1 parent f89b8dc8d7
commit 00514a8ef0
1 file changed
+1 -1
+1 -1
View File
@@ -263,7 +263,7 @@ func (c *CreateCommand) makeContainerUserCustomHome(
opts *CreateOptions,
containerName string,
) string {
containerUserCustomHome := opts.ContainerUserCustomHome
containerUserCustomHome := strings.TrimRight(opts.ContainerUserCustomHome, "/")
if opts.ContainerHomePrefix != "" && containerUserCustomHome == "" {
containerUserCustomHome = filepath.Join(opts.ContainerHomePrefix, containerName)
}