Skip to content

Commit 586d0aa

Browse files
authored
Merge pull request #5 from puppetlabs-operations/add-more-checksums
Add checksums for compressed files
2 parents d60268b + 6a3e1d6 commit 586d0aa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ for target in $targets; do
2323
echo "----> Building project for: $target"
2424
GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $output
2525

26-
sha256sum $output |cut -d ' ' -f1 > $output-sha256sum.txt
27-
2826
zip -j $output.zip $output > /dev/null 2>&1
2927
tar -czvf $output.tgz $output > /dev/null 2>&1
28+
29+
sha256sum $output |cut -d ' ' -f1 > $output-sha256sum.txt
30+
sha256sum $output.zip |cut -d ' ' -f1 > $output-zip-sha256sum.txt
31+
sha256sum $output.tgz |cut -d ' ' -f1 > $output-tgz-sha256sum.txt
3032
done
3133

3234
echo "----> Build is complete. List of files at $release_path:"

0 commit comments

Comments
 (0)