[ovs-dev] [ovs-pki fixes 2/3] ovs-pki: Create log directory if it does not exist.

Ben Pfaff blp at nicira.com
Fri Aug 6 20:15:12 UTC 2010

On Fri, Aug 06, 2010 at 11:45:02AM -0700, Justin Pettit wrote:
> On Aug 6, 2010, at 10:24 AM, Ben Pfaff wrote:
> > +logdir=$(dirname "$log")
> > +if test ! -d "$logdir"; then
> > +    mkdir "$logdir" 2>/dev/null || true
> Do you want to do a "mkdir -p" so it can create intermediate
> directories if they don't exist?

I did think about that and decided against it.  But I can't make a
really good argument against it, so I'll change it.

I guess I'll add -m 755 also.

More information about the dev mailing list