mirror of
https://github.com/containers/podman.git
synced 2025-06-21 17:38:12 +08:00
@ -41,6 +41,7 @@ export TMPDIR=`mktemp -d /tmp/podman.XXXXXXXXXX`
|
|||||||
trap "cleanup $TMPDIR" EXIT
|
trap "cleanup $TMPDIR" EXIT
|
||||||
|
|
||||||
function umount {
|
function umount {
|
||||||
|
set +xeuo pipefail
|
||||||
# xargs -r always ran once, so write any mount points to file first
|
# xargs -r always ran once, so write any mount points to file first
|
||||||
mount |awk "/$1/"' { print $3 }' >${TMPDIR}/mounts
|
mount |awk "/$1/"' { print $3 }' >${TMPDIR}/mounts
|
||||||
if [[ -s ${TMPDIR}/mounts ]]; then
|
if [[ -s ${TMPDIR}/mounts ]]; then
|
||||||
|
Reference in New Issue
Block a user