diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2018-09-25 02:49:20 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2018-09-25 02:49:20 -0400 |
commit | cd3be3e8a7e55cfb004c96c11d880d19d4c68e38 (patch) | |
tree | 36df5ae97a7eec15c5a28a709a8dde05f72a600b | |
parent | 3540ddbf4c2dc25903f3d4f23a86dd795ae620e2 (diff) |
make_repo_torrents: Avoid resolving symlinks unnecessarily
-rwxr-xr-x | cron-jobs/make_repo_torrents | 6 |
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}/"}"}" \ |