Is there a way to detect if an
ant retrieve call fails due to a login issue?
I've got a pretty basic bash script that uses ant to retrieve the latest changes from our production instance and commit them to a git repo. In order to get track deletions I have to first clear out the src folder since retrieve leaves deleted components behind. Problem is if their is any failure with the retrieve call it commits with an empty folder. How can I get my script to exit if the retrieve call fails?