From 225553a021eba517fed81c1ad0c9f5f5eab441e3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Oct 2018 08:42:54 +0200 Subject: Improve release script --- scripts/release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 3a8643b5a..ccb93bc44 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -34,8 +34,8 @@ fi version="v$1" github_prerelease_option="" -if [[ "$version" = *".pre."* ]]; then - echo "This is a pre-release." +if [[ "$version" = *"-alpha."* ]] || [[ "$version" = *"-beta."* ]] || [[ "$version" = *"-rc."* ]]; then + echo -e "This is a pre-release.\n" github_prerelease_option="--pre-release" fi @@ -45,7 +45,7 @@ tar_name="peertube-$version.tar.xz" changelog=$(awk -v version="$version" '/## v/ { printit = $2 == version }; printit;' CHANGELOG.md | grep -v "$version" | sed '1{/^$/d}') -printf "Changelog will be:\\n%s\\n" "$changelog" +printf "Changelog will be:\\n\\n%s\\n\\n" "$changelog" read -p "Are you sure to release? " -n 1 -r echo -- cgit v1.2.3