runtime: fix a typo in kata-collect-data.sh

Fix a typo while to check if mountpoint exist.

Fixes: #3365

Signed-off-by: zhanghj <zhanghj.lc@inspur.com>
This commit is contained in:
zhanghj 2021-12-28 10:03:18 +08:00
parent 0fe20854e7
commit 2254fa8657

View File

@ -714,7 +714,7 @@ unmount_partition()
{
local mountpoint="$1"
[ -n "$mountpoint" ] || die "need mountpoint"
[ -n "$mountpoint" ] || die "mountpoint does not exist: $mountpoint"
[ -e "$mountpoint" ] || die "mountpoint does not exist: $mountpoint"
umount "$mountpoint"
}