git-importer/update-tasks.sh
2024-05-17 21:47:15 +02:00

17 lines
372 B
Bash
Executable File

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