Exit bash script on error in loop

Johnny Rosenberg gurus.knugum at gmail.com
Sat Sep 14 11:45:48 UTC 2013


2013/9/14 Tony Arnold <tony.arnold at manchester.ac.uk>

> 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.
>
>
No worries, happens to all of us. :)


Regards,
Johnny Rosenberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130914/bc0d326f/attachment.html>


More information about the ubuntu-users mailing list