git-importer/update-tasks.sh

17 lines
372 B
Bash
Raw Normal View History

2024-05-17 20:39:55 +02:00
#!/bin/bash
#
cd /space/dmueller/git-importer
source credentials.sh
while true; do
for i in $PWD/tasks/*; do
echo "$(date): Importing $(basename $i)"
2024-05-17 21:47:15 +02:00
if ! python3 ./git-importer.py -c repos/.cache $(basename $i); then
mkdir -p $PWD/failed-tasks
mv $i $PWD/failed-tasks
fi
2024-05-17 20:39:55 +02:00
done
inotifywait -q -e create $PWD/tasks
done