summaryrefslogtreecommitdiff
path: root/cron-jobs
diff options
context:
space:
mode:
authorJoseph Graham <joseph@fibreglass.tunachunks>2014-07-27 12:07:06 +0100
committerJoseph Graham <joseph@fibreglass.tunachunks>2014-07-27 12:07:06 +0100
commit6790ac43f2f79fea6adcfef2a10d3c4105574216 (patch)
treef30b8b031ad748f3f47dd965760b9fc052e90309 /cron-jobs
parentdb2ea03e53a3aed1c8350811be70a31c7ea0ef53 (diff)
fixed loads of mistakes I make
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/make_repo_torrents4
1 files changed, 3 insertions, 1 deletions
diff --git a/cron-jobs/make_repo_torrents b/cron-jobs/make_repo_torrents
index c94d073..a5d72a5 100755
--- a/cron-jobs/make_repo_torrents
+++ b/cron-jobs/make_repo_torrents
@@ -46,6 +46,8 @@ do
find "${dir}" -name '*\.pkg\.tar\.xz' |
while read pkg
do
+ pkg_name="${pkg##*/}"
+
if [[ -h "${pkg}" ]] # check if it's a symbolic link
then
# We get the target of the symlink
@@ -56,7 +58,7 @@ do
# `make_individual_torrent' to make it.
if ! [[ -f "${torrent_location}${pkg_name}.torrent" ]]
then
- /srv/http/repo/dbscripts/make_individual_torrent "${pkg}"
+ /srv/http/repo/dbscripts/make_individual_torrent "${pkg}" "${public_location}"
fi
done
done