Skip to content

Commit

Permalink
let report script fail if it can't generate a report
Browse files Browse the repository at this point in the history
If we're rate limited, the report command exits with an error but
putting it in a subshell means the error is swallowed.
  • Loading branch information
dhellmann committed Apr 5, 2024
1 parent 632699e commit 04aa6f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/this-week.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ if [ -z "$DAYSBACK" ]; then
DAYSBACK=$(expr ${today_num} - ${latest_num})
fi

(cd ./tools; go run ./main.go report --days-back $DAYSBACK) > this-week/${REPORT_FILE}
pushd ./tools
go run ./main.go report --days-back $DAYSBACK > ../this-week/${REPORT_FILE}
popd

git checkout -b twie-${TODAY}
git add this-week/${REPORT_FILE}
Expand Down

0 comments on commit 04aa6f1

Please sign in to comment.