forked from importers/git-importer
15 lines
295 B
Bash
15 lines
295 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
cd /space/dmueller/git-importer
|
||
|
|
||
|
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;
|
||
|
done
|
||
|
inotifywait -q -e create $PWD/tasks
|
||
|
done
|