From 4e07d8272efc8aaf26725ea34c457dd026360a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Fri, 17 May 2024 21:47:15 +0200 Subject: [PATCH] don't loop over failed packages --- update-tasks.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/update-tasks.sh b/update-tasks.sh index cef1001..60b7f76 100755 --- a/update-tasks.sh +++ b/update-tasks.sh @@ -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