Merge pull request #494 from crosbymichael/cwd
Only set cwd when not empty
This commit is contained in:
commit
4e6893b05a
|
@ -134,8 +134,10 @@ func finalizeNamespace(config *initConfig) error {
|
|||
if err := w.drop(); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := syscall.Chdir(config.Cwd); err != nil {
|
||||
return err
|
||||
if config.Cwd != "" {
|
||||
if err := syscall.Chdir(config.Cwd); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue