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 set +x
hashes="sha1 sha256 sha512" hashes="sha1 sha256 sha512"
local outfile hashfile local outfile hashfile
outfile=$output$1 cd "$(dirname $output)"
outfile=$(basename "$output$1")
for hash in $hashes ; do for hash in $hashes ; do
hashfile=$outfile.$hash hashfile=$outfile.$hash
@ -175,4 +176,4 @@ esac
echo "${TRAVIS_TAG}" > $output/VERSION echo "${TRAVIS_TAG}" > $output/VERSION
exit 0 exit 0