in reply to return values

If he is calling your script he is probably looking for an exit value. Just use exit 1; if there is an error, and exit 0; if not.