update-github-list: parse log_file from (Python) conffile
This commit is contained in:
parent
49aff6e3d6
commit
7f706e4fa8
1 changed files with 4 additions and 2 deletions
|
@ -3,10 +3,12 @@
|
|||
# PYTHONPATH should be set via cron
|
||||
# export PYTHONPATH=$HOME/src/swh-lister-github/
|
||||
|
||||
logfile=$HOME/.cache/ghlister/log/ghlister.$(date +%Y%m%d).log
|
||||
log_dir=$(grep log_dir ~/.config/swh/lister-github.ini | cut -f 3 -d' ')
|
||||
test -d "$log_dir" || mkdir -p "$log_dir"
|
||||
logfile="${log_dir}/$(date +%Y%m%d).log"
|
||||
|
||||
# catchup with recent changes
|
||||
$HOME/src/github-list-repos/bin/ghlister catchup &> $logfile
|
||||
$HOME/src/github-list-repos/bin/ghlister catchup &> "$logfile"
|
||||
|
||||
# XXX: computing the following stats via this script forced to have double
|
||||
# configuration for shell-vs-python. Also it's unneeded: we can compute the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue