From 258e15ab23c30bd7dfef1a6d0af0e52cb6e100a9 Mon Sep 17 00:00:00 2001 From: John Conroy Date: Mon, 6 Jan 2025 15:46:52 -0500 Subject: [PATCH 1/2] Fix push early return --- etc/build/push.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etc/build/push.sh b/etc/build/push.sh index 27e56bc8fd..7e00572aeb 100755 --- a/etc/build/push.sh +++ b/etc/build/push.sh @@ -29,8 +29,7 @@ if [[ -z "$MAJOR" ]]; then echo "Now epoch day: $NOW_EPOCH_DAY" - DAYS_PAST_REF=`expr $NOW_EPOCH_DAY - $REF_EPOCH_DAY` - + DAYS_PAST_REF=$(($NOW_EPOCH_DAY - $REF_EPOCH_DAY)) echo "Days since last minor version: $DAYS_PAST_REF" if [[ $DAYS_PAST_REF -lt 14 ]]; then From eb6e0fc4242ba247fadb9deac37fa7f3fef70c13 Mon Sep 17 00:00:00 2001 From: John Conroy Date: Mon, 6 Jan 2025 15:48:55 -0500 Subject: [PATCH 2/2] Add changelog --- CHANGELOG-fix-push-early-return.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 CHANGELOG-fix-push-early-return.md diff --git a/CHANGELOG-fix-push-early-return.md b/CHANGELOG-fix-push-early-return.md new file mode 100644 index 0000000000..1fce51a5b7 --- /dev/null +++ b/CHANGELOG-fix-push-early-return.md @@ -0,0 +1 @@ +- Fix issue in push script where if the number of days since the last release is 0 the script returns early. \ No newline at end of file