Only use relative path in DIGEST file

This commit is contained in:
Janek Bevendorff 2017-02-17 17:21:27 +01:00
parent 5adc1a12dd
commit 0c47c2016d
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

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!"