From 47a4d083f1f795d26640c1b3ee1150a80577e4e2 Mon Sep 17 00:00:00 2001 From: Haruaki Tamada Date: Mon, 8 Nov 2021 13:11:28 +0900 Subject: [PATCH] update --- .bin/update_version.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.bin/update_version.sh b/.bin/update_version.sh index 4c17c51..1ebc841 100644 --- a/.bin/update_version.sh +++ b/.bin/update_version.sh @@ -15,10 +15,9 @@ if [[ $result -eq 0 ]]; then exit 1 fi -prev=$(grep ^VERSION Makefile | tr -d 'VERSION := ') - +PREV_VERSION=$(grep ^VERSION Makefile | tr -d 'VERSION := ') for i in README.md docs/content/_index.md; do - sed -e "s#Version-${prev}-green#Version-${VERSION//-/--}-green#g" -e "s#tag/v${prev}#tag/v${VERSION}#g" $i > a + sed -e "s#Version-${PREV_VERSION}-green#Version-${VERSION//-/--}-green#g" -e "s#tag/v${PREV_VERSION}#tag/v${VERSION}#g" $i > a mv a $i done