Add -e to stop the script on command error.