summaryrefslogtreecommitdiff
path: root/make_individual_torrent
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 /make_individual_torrent
parentdb2ea03e53a3aed1c8350811be70a31c7ea0ef53 (diff)
fixed loads of mistakes I make
Diffstat (limited to 'make_individual_torrent')
-rw-r--r--make_individual_torrent10
1 files changed, 9 insertions, 1 deletions
diff --git a/make_individual_torrent b/make_individual_torrent
index 0cfee56..e5b7d8c 100644
--- a/make_individual_torrent
+++ b/make_individual_torrent
@@ -15,8 +15,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This script is called by `make_repo_torrents' to make a torrent. It
-# depends on `mktorrent'. It takes the following arg:
+# depends on `mktorrent'. It takes the following args:
# $1 - path of package
+# $2 - public location
# Comma seperated list of trackers, no spaces
# t67.eu is run by Xylon, hackcoop by fauno & friends
@@ -33,7 +34,14 @@ then
echo 1
fi
+if [[ -z "${2}" ]]
+then
+ echo "Error. Second arg must be the public location."
+ echo 1
+fi
+
pkg="${1}"
+public_location="${2}"
pkg_name="${pkg##*/}"