Update release script with properly formatted table

Updates the script to properly format the table (had a bit of a
shortcoming doing that) as well as remove the leftover file
install_guide.txt as it's generated for release notes.
This commit is contained in:
Charlie Drage 2017-07-20 12:21:40 -04:00
parent 1e6314339e
commit 0c5cfaad84

View File

@ -185,13 +185,14 @@ Download from [GitHub](https://github.com/kubernetes/kompose/releases/download/v
__Checksums:__ __Checksums:__
Filename | SHA256 Hash | Filename | SHA256 Hash |
-----------------------" > install_guide.txt | ------------- |:-------------:|" > install_guide.txt
for f in bin/* for f in bin/*
do do
HASH=`sha256sum $f | head -n1 | awk '{print $1;}'` HASH=`sha256sum $f | head -n1 | awk '{print $1;}'`
echo "$f | $HASH" >> install_guide.txt NAME=`echo $f | sed "s,bin/,,g"`
echo "[$NAME](https://github.com/kubernetes/kompose/releases/download/v$1/$NAME) | $HASH" >> install_guide.txt
done done
# Append the file to the file # Append the file to the file
@ -243,7 +244,7 @@ push() {
} }
clean() { clean() {
rm changes.txt rm changes.txt install_guide.txt
} }
main() { main() {