Skip to content

Commit fff6fec

Browse files
committed
Make sure Logdir is created.
- FIxes bug 950902. Change-Id: I1e387b4c97551744673281fdeae61d87c1fc39ab
1 parent 165121f commit fff6fec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stack.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ if [[ -n "$LOGFILE" ]]; then
472472
LOGDAYS=${LOGDAYS:-7}
473473
LOGDIR=$(dirname "$LOGFILE")
474474
LOGNAME=$(basename "$LOGFILE")
475+
mkdir -p $LOGDIR
475476
find $LOGDIR -maxdepth 1 -name $LOGNAME.\* -mtime +$LOGDAYS -exec rm {} \;
476477

477478
TIMESTAMP_FORMAT=${TIMESTAMP_FORMAT:-"%F-%H%M%S"}

0 commit comments

Comments
 (0)