chore: make possible to debug format-changelog.sh

This commit is contained in:
Zaiming (Stone) Shi 2023-03-09 17:04:06 +01:00
parent 9bba9b47c7
commit e4ce9e1111
2 changed files with 3 additions and 3 deletions

View File

@ -4,9 +4,7 @@
set -euo pipefail
if [ "${DEBUG:-}" = 1 ]; then
set -x
fi
[ "${DEBUG:-}" = 1 ] && set -x
# ensure dir
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/../.."

View File

@ -3,6 +3,8 @@ set -euo pipefail
shopt -s nullglob
export LANG=C.UTF-8
[ "${DEBUG:-}" = 1 ] && set -x
logerr() {
echo "$(tput setaf 1)ERROR: $1$(tput sgr0)" 1>&2
}