mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
make loglist work with new log layout
This commit is contained in:
@@ -17,12 +17,16 @@ fi
|
||||
ts=`date -d "$when" +%Y/%m/%d`
|
||||
|
||||
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;
|
||||
fi
|
||||
|
||||
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
|
||||
echo "No such playbook log: $2"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user