From dd1d5de120df2bf79d7d73171fcd33b03a472914 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 29 Nov 2023 18:57:08 -0700 Subject: [PATCH] Ensure torrent generation goes to separate directories --- sync/gen-torrents.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sync/gen-torrents.sh b/sync/gen-torrents.sh index dc1486b..e6cda43 100755 --- a/sync/gen-torrents.sh +++ b/sync/gen-torrents.sh @@ -79,10 +79,10 @@ for torrent_directory in "${TORRENT_DOWNLOAD_DIR}"/Rocky-"${REVISION}"-*; do continue fi - torrenttools create \ - --announce "${TORRENT_TRACKERS[@]}" --name "${name}" \ - --exclude "${TORRENT_EXCLUDES}" --output "${TORRENT_START_DIR}" \ - --threads "${THREADS}" --comment "${TORRENT_COMMENT}" \ + torrenttools create \ + --announce "${TORRENT_TRACKERS[@]}" --name "${name}" \ + --exclude "${TORRENT_EXCLUDES}" --output "${TORRENT_START_DIR}/${torrent_directory##*/}" \ + --threads "${THREADS}" --comment "${TORRENT_COMMENT}" \ "${torrent_directory}" res=$? if [[ $res -ne 0 ]]; then