mirror of
https://github.com/im-tomu/fomu-toolchain.git
synced 2024-09-20 02:40:08 +00:00
change to output directory before calculcating hashes
This commit is contained in:
parent
0ef41f09c1
commit
fd4231a235
5
build.sh
5
build.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user