From 0c5cfaad842f756d37baa73c99061224ecff37d3 Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Thu, 20 Jul 2017 12:21:40 -0400 Subject: [PATCH] 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. --- script/release.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/script/release.sh b/script/release.sh index 7b11f446..a1df1370 100755 --- a/script/release.sh +++ b/script/release.sh @@ -185,13 +185,14 @@ Download from [GitHub](https://github.com/kubernetes/kompose/releases/download/v __Checksums:__ -Filename | SHA256 Hash ------------------------" > install_guide.txt +| Filename | SHA256 Hash | +| ------------- |:-------------:|" > install_guide.txt for f in bin/* do 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 # Append the file to the file @@ -243,7 +244,7 @@ push() { } clean() { - rm changes.txt + rm changes.txt install_guide.txt } main() {