Use the target realpath to do the unmounting

This commit is contained in:
Sebastien Bacher 2020-11-24 11:36:13 +01:00
parent 40da2925c4
commit 79e8f3b53e

View File

@ -152,7 +152,7 @@ setup_mountpoint() {
teardown_mountpoint() {
# Reverse the operations from setup_mountpoint
local mountpoint="$1"
local mountpoint=$(realpath "$1")
# ensure we have exactly one trailing slash, and escape all slashes for awk
mountpoint_match=$(echo "$mountpoint" | sed -e's,/$,,; s,/,\\/,g;')'\/'