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

Justin Pettit jpettit at nicira.com
Fri Aug 6 18:45:02 UTC 2010


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?

--Justin






More information about the dev mailing list