From 3524b8ae9518014b544ffaaf9c3ece22a87836f9 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Fri, 27 Dec 2019 19:18:49 -0800 Subject: [PATCH] util: Make sure IsMounted() has the exact match Signed-off-by: Sheng Yang --- util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/util.go b/util/util.go index ae0bcb56e..ba089145d 100644 --- a/util/util.go +++ b/util/util.go @@ -134,7 +134,7 @@ func IsMounted(mountPoint string) bool { } lines := strings.Split(output, "\n") for _, line := range lines { - if strings.Contains(line, mountPoint) { + if strings.Contains(line, " "+mountPoint+" ") { return true } }