summaryrefslogtreecommitdiffstats
path: root/import/import-batch.sh
blob: d15060f84491a1cf610f976a19890a41d310cf9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

if [ "$#" -lt 1 ]
then
    echo "You need to supply a folder for import!"
    exit 1
fi

find $1 -name "*.json" -type f | while read line
do
    echo "Processing $line"
    ../../bin/python3 import.py "$line"
done