forked from importers/git-importer
don't loop over failed packages
This commit is contained in:
parent
2a3475ab6e
commit
4e07d8272e
@ -7,8 +7,10 @@ source credentials.sh
|
||||
while true; do
|
||||
for i in $PWD/tasks/*; do
|
||||
echo "$(date): Importing $(basename $i)"
|
||||
python3 ./git-importer.py -c repos/.cache $(basename $i)
|
||||
rm -f $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
|
||||
|
Loading…
Reference in New Issue
Block a user