aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-17 08:42:54 +0200
committerChocobozzz <me@florianbigard.com>2018-10-17 08:42:54 +0200
commit225553a021eba517fed81c1ad0c9f5f5eab441e3 (patch)
tree9707bae16445f0ca0214927b5d245b080b020de6 /scripts
parent92ea70a782181b987b3547a0d5816e314efb5112 (diff)
downloadPeerTube-225553a021eba517fed81c1ad0c9f5f5eab441e3.tar.gz
PeerTube-225553a021eba517fed81c1ad0c9f5f5eab441e3.tar.zst
PeerTube-225553a021eba517fed81c1ad0c9f5f5eab441e3.zip
Improve release script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release.sh6
1 files 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
34 34
35version="v$1" 35version="v$1"
36github_prerelease_option="" 36github_prerelease_option=""
37if [[ "$version" = *".pre."* ]]; then 37if [[ "$version" = *"-alpha."* ]] || [[ "$version" = *"-beta."* ]] || [[ "$version" = *"-rc."* ]]; then
38 echo "This is a pre-release." 38 echo -e "This is a pre-release.\n"
39 github_prerelease_option="--pre-release" 39 github_prerelease_option="--pre-release"
40fi 40fi
41 41
@@ -45,7 +45,7 @@ tar_name="peertube-$version.tar.xz"
45 45
46changelog=$(awk -v version="$version" '/## v/ { printit = $2 == version }; printit;' CHANGELOG.md | grep -v "$version" | sed '1{/^$/d}') 46changelog=$(awk -v version="$version" '/## v/ { printit = $2 == version }; printit;' CHANGELOG.md | grep -v "$version" | sed '1{/^$/d}')
47 47
48printf "Changelog will be:\\n%s\\n" "$changelog" 48printf "Changelog will be:\\n\\n%s\\n\\n" "$changelog"
49 49
50read -p "Are you sure to release? " -n 1 -r 50read -p "Are you sure to release? " -n 1 -r
51echo 51echo