On Sun, Dec 30, 2001 at 09:45:43AM +0100, Tollef Fog Heen wrote: > * Matt Zimmerman > > | On Sat, Dec 29, 2001 at 04:01:40PM +0100, Tollef Fog Heen wrote: > | > | > * Gaetano Paolone > | > mkdir -p $TMPDIR || exit 1, I presume? > | > | Or, uncomment "set -e" and guard whichever commands (presumably few) should > | be allowed to fail. > > Actually, neither your nor my suggestion will work. mkdir -p doesn't > fail if the directory already exists, so you probably want something > like
But it can fail for other reasons, and if it does fail, the script should abort. Is there some reason that it _should_ fail if the directory already exists? Normally, that is not an error condition. -- - mdz

