mirror of
https://github.com/89luca89/distrobox.git
synced 2026-11-02 20:30:16 -06:00
fix(create): strip trailing slashes from --home
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user