From e7d9eaf8d3afa02135cffc63609ba18e04d08da2 Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Sat, 2 Jan 2021 21:38:30 +0100 Subject: [PATCH] fixed ignoring other mountpoints when one is inside other --- cli/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cli.go b/cli/cli.go index ecddbe5f9..a04fc731d 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -239,7 +239,7 @@ func (ui *UI) deviceItemSelected(row, column int) { selectedDevice := ui.table.GetCell(row, column).GetReference().(*analyze.Device) for _, device := range ui.devices { - if device.Name != selectedDevice.Name { + if device.Name != selectedDevice.Name && !strings.HasPrefix(selectedDevice.MountPoint, device.MountPoint) { ui.ignorePaths = append(ui.ignorePaths, device.MountPoint) } }