From 9be5dff82390f657206fc1cc53a6e64d003143c1 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Sun, 15 Nov 2020 10:23:50 +0100 Subject: [PATCH] use realpath to always use absolute paths of tomb files in maphash --- tomb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomb b/tomb index 1865b91..bca7fd9 100755 --- a/tomb +++ b/tomb @@ -654,7 +654,7 @@ render_mapper() { _failure "cannot render mapper: missing \$tombpath" [[ "$TOMBNAME" == "" ]] && _failure "cannot render mapper: missing \$TOMBNAME" - local maphash=`print $tombpath | sha256sum -z` + local maphash=`realpath $tombpath | sha256sum -z` mapper="tomb.$TOMBNAME.${maphash[(w)1]}" local mounted_tombs=(`list_tomb_mounts`) local usedmapper