make loglist work with new log layout
This commit is contained in:
parent
0b3becc0c5
commit
7c3b9d3574
1 changed files with 6 additions and 2 deletions
|
@ -17,12 +17,16 @@ fi
|
||||||
ts=`date -d "$when" +%Y/%m/%d`
|
ts=`date -d "$when" +%Y/%m/%d`
|
||||||
|
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
find $logpath/$ts -mindepth 1 -maxdepth 1 -type d -print
|
for dir in $logpath/*/$ts; do
|
||||||
|
if [ -d $dir ]; then
|
||||||
|
echo $dir
|
||||||
|
fi
|
||||||
|
done
|
||||||
exit;
|
exit;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d $logpath/$ts/$2 ]; then
|
if [ -d $logpath/$ts/$2 ]; then
|
||||||
find $logpath/$ts/$2 -mindepth 1 -maxdepth 1 -type d -print
|
find $logpath/$2/$ts -mindepth 1 -maxdepth 1 -type d -print
|
||||||
else
|
else
|
||||||
echo "No such playbook log: $2"
|
echo "No such playbook log: $2"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue