|
@@ -63,12 +63,8 @@ func EnsureRemoveAll(dir string) error {
|
|
return err
|
|
return err
|
|
}
|
|
}
|
|
|
|
|
|
- if mounted, _ := mount.Mounted(pe.Path); mounted {
|
|
|
|
- if e := mount.Unmount(pe.Path); e != nil {
|
|
|
|
- if mounted, _ := mount.Mounted(pe.Path); mounted {
|
|
|
|
- return errors.Wrapf(e, "error while removing %s", dir)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ if e := mount.Unmount(pe.Path); e != nil {
|
|
|
|
+ return errors.Wrapf(e, "error while removing %s", dir)
|
|
}
|
|
}
|
|
|
|
|
|
if exitOnErr[pe.Path] == maxRetry {
|
|
if exitOnErr[pe.Path] == maxRetry {
|