Merge pull request #11 from ansemjo/master

build.sh: change to output directory before calculcating hashes
This commit is contained in:
Sean Cross 2020-09-24 09:50:31 +08:00 committed by GitHub
commit b3b9ffcd65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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