mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00: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:
parent
0fe20854e7
commit
2254fa8657
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user