From abb7a63b624821e68a67524da47553bb9101093b Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Tue, 15 Nov 2022 16:24:25 +0000 Subject: [PATCH] release: Be consistent about TZ-setting. --- tools/release | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/release b/tools/release index 1dbef9b1c6..afb43058fb 100755 --- a/tools/release +++ b/tools/release @@ -57,8 +57,9 @@ fi # Check the date is correct for the release release_line=$(grep -x -E -m 1 -o "### $version -- ([0-9-]+)" docs/overview/changelog.md) \ || fail "docs/overview/changelog.md does not contain a line for $version" -[ "$release_line" == "### $version -- $(TZ=America/Los_Angeles date +%F)" ] \ - || fail "Date in docs/overview/changelog.md does not match $(date +%F)" +expected_date="$(TZ=America/Los_Angeles date +%F)" +[ "$release_line" == "### $version -- $expected_date" ] \ + || fail "Date in docs/overview/changelog.md does not match '$expected_date'" extract_version() { setting="$1"