Merge pull request #321 from keepassxreboot/feature/relative-path-digest-file

Only use relative path in DIGEST file
This commit is contained in:
Janek Bevendorff authored and GitHub committed 2017-02-18 15:49:48 +01:00
commit f5e75b5933
1 file changed
+3 -1
+3 -1
View File
@@ -657,7 +657,9 @@ sign() {
fi
logInfo "Creating digest for file '${f}'..."
sha256sum "$f" > "${f}.DIGEST"
local rp="$(realpath "$f")"
local bname="$(basename "$f")"
(cd "$(dirname "$rp")"; sha256sum "$bname" > "${bname}.DIGEST")
done
logInfo "All done!"