On 07/05/2010 09:22 AM, Brendon Higgins wrote:
The "test -e" command is protected by an "&&", so a failure will not trigger an early exit and all files will be correctly removed.I guess you're right. But I tried the script with "exit 0" added at the last line and it failed anyway. I added "echo blah" statements to find where it was aborting, and it seemed to be at that test statement. When I changed it to an if ... fi clause, the problem ceased.
That's odd, our testing went just fine. Can you tell me what shell you are using? Happy scanning, -- Alesh Slovak Linux Team -- AVASYS Corporation alesh.slovak@avasys.jp http://avasys.jp