chore: make possible to debug format-changelog.sh
This commit is contained in:
parent
9bba9b47c7
commit
e4ce9e1111
|
@ -4,9 +4,7 @@
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if [ "${DEBUG:-}" = 1 ]; then
|
[ "${DEBUG:-}" = 1 ] && set -x
|
||||||
set -x
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ensure dir
|
# ensure dir
|
||||||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/../.."
|
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/../.."
|
||||||
|
|
|
@ -3,6 +3,8 @@ set -euo pipefail
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
export LANG=C.UTF-8
|
export LANG=C.UTF-8
|
||||||
|
|
||||||
|
[ "${DEBUG:-}" = 1 ] && set -x
|
||||||
|
|
||||||
logerr() {
|
logerr() {
|
||||||
echo "$(tput setaf 1)ERROR: $1$(tput sgr0)" 1>&2
|
echo "$(tput setaf 1)ERROR: $1$(tput sgr0)" 1>&2
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue