diff --git a/scripts/scan_torrents.sh b/scripts/scan_torrents.sh index 3076641..1cb5170 100755 --- a/scripts/scan_torrents.sh +++ b/scripts/scan_torrents.sh @@ -71,10 +71,11 @@ for tmp_torrent_dir_sub in *; do done popd -. prune.sh + # Remove the temp dir rm -rf "$tmp_torrent_dir" # Scan the torrent dir for new files, and add them node --max-old-space-size=8096 scan_torrent_files.js --dir "$torrents_dir" +. prune.sh