Exit bash script on error in loop

Tony Arnold tony.arnold at manchester.ac.uk
Sat Sep 14 10:05:43 UTC 2013


Johnny,

On 13/09/13 18:04, Johnny Rosenberg wrote:
> 2013/9/13 Tony Arnold <tony.arnold at manchester.ac.uk

>     Won't that kill the progress bar too? You
>     will need the --auto-close option, which you have anyway!
> 
> 
> The progress bar was killed properly. The problem was that ”exit 1”
> didn't stop the script, so whatever I had after the loop was still executed.

Apologies. On closer inspection of your script I realised my suggestion
was pointless. Sorry to have confused you.

Regards,
Tony.
-- 
Tony Arnold,                        Tel: +44 (0) 161 275 6093
Head of IT Security,                Fax: +44 (0) 705 344 3082
University of Manchester,           Mob: +44 (0) 773 330 0039
Manchester M13 9PL.                 Email: tony.arnold at manchester.ac.uk




More information about the ubuntu-users mailing list