I got some feedback after passing this out to a few friends. Here is what I’ve changed:
- Removed
clear - Output the display message to
/dev/null - Removed
echo "complete"
These changes remove any of the outputs to the display. The only time you will receive a message is if you have file that is currently open in an application and the script cannot unmount the volume.
For more details check out the ejectAllVolumes project page.