mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-18 04:54:31 +01:00
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:
@@ -714,7 +714,7 @@ unmount_partition()
|
|||||||
{
|
{
|
||||||
local mountpoint="$1"
|
local mountpoint="$1"
|
||||||
[ -n "$mountpoint" ] || die "need mountpoint"
|
[ -n "$mountpoint" ] || die "need mountpoint"
|
||||||
[ -n "$mountpoint" ] || die "mountpoint does not exist: $mountpoint"
|
[ -e "$mountpoint" ] || die "mountpoint does not exist: $mountpoint"
|
||||||
|
|
||||||
umount "$mountpoint"
|
umount "$mountpoint"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user