Update install.sh

Signed-off-by: Joakim Roubert <joakimr@axis.com>
pull/747/head
Joakim Roubert 5 years ago committed by GitHub
parent 2548f3ebaa
commit f0bce02a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -473,7 +473,7 @@ do_unmount() {
while read ignore mount ignore; do while read ignore mount ignore; do
MOUNTS="$mount\n$MOUNTS" MOUNTS="$mount\n$MOUNTS"
done </proc/self/mounts done </proc/self/mounts
MOUNTS=$(printf $MOUNTS | sort -r -) MOUNTS=$(printf $MOUNTS | grep "^$1" | sort -r)
if [ -n "${MOUNTS}" ]; then if [ -n "${MOUNTS}" ]; then
umount ${MOUNTS} umount ${MOUNTS}
fi fi

Loading…
Cancel
Save