[Dclug] Re: [Novalug] Re: [Ma-linux] backup/mirror script

Angelo Bertolli angelo at freeshell.org
Tue Apr 17 11:30:05 EDT 2007


Michael Stone wrote:
> It's good to put
> set -e
> at the top of the script, which will cause it to exit if a program you 
> run returns an error code. E.g., if your mkdir fails, the script will 
> abort. For a more complicated script it would be good to test the 
> error state ($?) and take action based on that, but for a simple 
> script like this -e is probably sufficient.
That's cool, thanks.  I had no idea I could do that.



More information about the Novalug mailing list