From fd4231a23595ac0feaab0969dcc260ce5676d24d Mon Sep 17 00:00:00 2001 From: Anton Semjonov Date: Mon, 30 Dec 2019 00:38:07 +0100 Subject: [PATCH] change to output directory before calculcating hashes --- build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index bb61b81..35579e4 100755 --- a/build.sh +++ b/build.sh @@ -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 @@ -175,4 +176,4 @@ esac echo "${TRAVIS_TAG}" > $output/VERSION -exit 0 \ No newline at end of file +exit 0