change to output directory before calculcating hashes

This commit is contained in:
Anton Semjonov 2019-12-30 00:38:07 +01:00
parent 0ef41f09c1
commit fd4231a235

View File

@ -40,7 +40,8 @@ checksum_output() {
set +x
hashes="sha1 sha256 sha512"
local outfile hashfile
outfile=$output$1
cd "$(dirname $output)"
outfile=$(basename "$output$1")
for hash in $hashes ; do
hashfile=$outfile.$hash