From 8852de1ec4f68f97fa1cf98235f66d7316cd4812 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 3 May 2023 09:40:22 +0800 Subject: [PATCH] chore: improve test coverage and API efficiency - Add echo statements to display the updated binary version and its corresponding os and sha256 values in `bump_version.sh` Signed-off-by: Bo-Yi Wu --- bump_version.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bump_version.sh b/bump_version.sh index 2feeebe..55bacf1 100755 --- a/bump_version.sh +++ b/bump_version.sh @@ -19,6 +19,7 @@ for bin in ${binaries};do esac latest=$(curl -sL -o /dev/null -w %{url_effective} "${git_url}/releases/latest") version="${latest##*/v}" + echo "update ${bin} version: ${version}" file_url="https://dl.gitea.com/${bin}/${version}" for os in ${supported_os}; do @@ -28,6 +29,7 @@ for bin in ${binaries};do fi sha256_file="${sha256_file}.sha256" sha256=$(curl -sL "${file_url}/${sha256_file}" | awk '{print$1}') + echo "update ${bin} os: ${os}, sha256: ${sha256}" sed -r "s/^(\s+when \"${os}\" then).*\"(.*)$/\1 \"${sha256}\"\2/" -i "${file}" done sed -r "s/^(\s+version).*/\1 \"${version}\"/" -i "${file}"