Use the target realpath to do the unmounting

sil2100/proposed-components
Sebastien Bacher 4 years ago
parent 40da2925c4
commit 79e8f3b53e

@ -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;')'\/'

Loading…
Cancel
Save