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 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