Browse code

Merge "Make sure Logdir is created."

Jenkins authored on 2012/03/10 04:53:23
Showing 1 changed files
... ...
@@ -472,6 +472,7 @@ if [[ -n "$LOGFILE" ]]; then
472 472
     LOGDAYS=${LOGDAYS:-7}
473 473
     LOGDIR=$(dirname "$LOGFILE")
474 474
     LOGNAME=$(basename "$LOGFILE")
475
+    mkdir -p $LOGDIR
475 476
     find $LOGDIR -maxdepth 1 -name $LOGNAME.\* -mtime +$LOGDAYS -exec rm {} \;
476 477
 
477 478
     TIMESTAMP_FORMAT=${TIMESTAMP_FORMAT:-"%F-%H%M%S"}