diff --git a/scripts/build_sqlite.sh b/scripts/build_sqlite.sh index 5bccb40..83f9ae2 100755 --- a/scripts/build_sqlite.sh +++ b/scripts/build_sqlite.sh @@ -95,7 +95,7 @@ delete from files where seeders is null; drop table files_tmp; EOF rm torrent_files_temp +fi mv db_tmp $db_file -fi echo "Done." diff --git a/scripts/update.sh b/scripts/update.sh index c175440..45792a1 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -6,4 +6,4 @@ sort -r --field-separator=';' -n --key=5 ../torrents.csv > ../torrents.csv.seede cargo run --release -- -s "$1" -f -t ../torrents.csv.seeders.desc rm ../torrents.csv.seeders.desc cd ../scripts -. scan_torrents.sh "$1" +./scan_torrents.sh "$1"