mirror of https://github.com/k3s-io/k3s
Merge pull request #2185 from rockholla/bugfix/2120
2120: fix issue with umount arg list too long on uninstallpull/2192/head
commit
9ac113de4c
|
@ -554,7 +554,7 @@ do_unmount() {
|
||||||
MOUNTS=$(printf $MOUNTS | grep "^$1" | sort -r)
|
MOUNTS=$(printf $MOUNTS | grep "^$1" | sort -r)
|
||||||
if [ -n "${MOUNTS}" ]; then
|
if [ -n "${MOUNTS}" ]; then
|
||||||
set -x
|
set -x
|
||||||
umount ${MOUNTS}
|
xargs -n 1 umount <<< ${MOUNTS}
|
||||||
else
|
else
|
||||||
set -x
|
set -x
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -554,7 +554,7 @@ do_unmount() {
|
||||||
MOUNTS=$(printf $MOUNTS | grep "^$1" | sort -r)
|
MOUNTS=$(printf $MOUNTS | grep "^$1" | sort -r)
|
||||||
if [ -n "${MOUNTS}" ]; then
|
if [ -n "${MOUNTS}" ]; then
|
||||||
set -x
|
set -x
|
||||||
umount ${MOUNTS}
|
xargs -n 1 umount <<< ${MOUNTS}
|
||||||
else
|
else
|
||||||
set -x
|
set -x
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue