summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcron-jobs/make_repo_torrents6
1 files changed, 3 insertions, 3 deletions
diff --git a/cron-jobs/make_repo_torrents b/cron-jobs/make_repo_torrents
index 11776ab..a59cc46 100755
--- a/cron-jobs/make_repo_torrents
+++ b/cron-jobs/make_repo_torrents
@@ -33,10 +33,10 @@ IFS=, # for ${TRACKERS[*]} and ${WEBSEEDS[*]}
# Find any packages
for pkgfile in "$FTP_BASE"/pool/*/*${PKGEXTS}; do
- # Resolve any symlinks
- pkgfile=$(readlink -f -- "$pkgfile")
-
if ! [[ -f ${pkgfile##*/}.torrent ]]; then
+ # Resolve any symlinks
+ pkgfile=$(readlink -f -- "$pkgfile")
+ # Create the .torrent
mktorrent \
--announce="${TRACKERS[*]}" \
--web-seed="${WEBSEEDS[*]/%/"/${pkgfile#"${FTP_BASE}/"}"}" \