We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 165121f commit fff6fecCopy full SHA for fff6fec
1 file changed
stack.sh
@@ -472,6 +472,7 @@ if [[ -n "$LOGFILE" ]]; then
472
LOGDAYS=${LOGDAYS:-7}
473
LOGDIR=$(dirname "$LOGFILE")
474
LOGNAME=$(basename "$LOGFILE")
475
+ mkdir -p $LOGDIR
476
find $LOGDIR -maxdepth 1 -name $LOGNAME.\* -mtime +$LOGDAYS -exec rm {} \;
477
478
TIMESTAMP_FORMAT=${TIMESTAMP_FORMAT:-"%F-%H%M%S"}
0 commit comments