1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-01-04 05:55:34 +00:00
bazarr/.github/scripts/create_changelog.sh
Goran Džaferi 25b8738c05
no log: [scripts] prevent globbing and word splitting (#1963)
Ran shellcheck and applied suggested fixes for prevention of
globbing and word splitting.

https://www.shellcheck.net/wiki/SC2046
https://www.shellcheck.net/wiki/SC2086
2022-10-03 23:35:23 -04:00

14 lines
No EOL
492 B
Bash
Executable file

#! /bin/bash
# This script is used in release-it as changelog
# export RELEASE_MASTER=1 to release master changelog
set -e
master_version=$(git describe --tags --abbrev=0 --match "v[0-9].[0-9].[0-9]")
latest_verion=$(git describe --tags --abbrev=0)
if [[ $RELEASE_MASTER -eq 1 ]]; then
auto-changelog --stdout -t changelog-master.hbs --starting-version "$master_version" --commit-limit 3
else
auto-changelog --stdout --starting-version "$latest_verion" --unreleased --commit-limit 0
fi