What does >> do here?
echo "deploy done" >> deploy.log
- Appends the line to deploy.log
- Replaces deploy.log's contents
- Reads input from deploy.log
- Sends errors into deploy.log
>> appends to the end of the file (creating it if needed), while > truncates it first.