From 97cb25c9f147cf9b5a12530d6a19c3de8bbe199d Mon Sep 17 00:00:00 2001 From: Raunak Kumar Date: Tue, 8 Jun 2021 10:20:14 -0700 Subject: [PATCH] Update mount.go (#154) --- linux/mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/mount.go b/linux/mount.go index 2460c21..c08441e 100644 --- a/linux/mount.go +++ b/linux/mount.go @@ -589,7 +589,7 @@ func MountNFSShare(source string, targetPath string, options []string, nfsType s nfsType = defaultNFSType } - mountedSource := GetDeviceFromMountPoint(targetPath) + mountedSource, _ := GetDeviceFromMountPoint(targetPath) if mountedSource != "" { // the source exists for the target path but differs from the expected mount, return error if mountedSource != source {