Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/al32-mktorrent.sh
diff options
context:
space:
mode:
authorSimon Doppler <dopsi@dopsi.ch>2017-08-06 15:50:10 +0200
committerSimon Doppler <dopsi@dopsi.ch>2017-08-06 15:50:10 +0200
commitcc28ea695f9afe6e7524e9b5ba6877f5e5c477d2 (patch)
tree87f4971799276928ba2c36bb77aa518d915e1660 /al32-mktorrent.sh
parent11f19906592d422ee4f320a28527499e4c4a85a4 (diff)
Show magnet link
Diffstat (limited to 'al32-mktorrent.sh')
-rw-r--r--al32-mktorrent.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/al32-mktorrent.sh b/al32-mktorrent.sh
index 65ba794..005ac13 100644
--- a/al32-mktorrent.sh
+++ b/al32-mktorrent.sh
@@ -66,6 +66,11 @@ echo -e "$fg_reset${fg_bold}Checking SHA512 sums...$fg_reset"
sha512sum --ignore-missing --check sha512sums || exit 101
echo -e "$fg_reset${fg_bold}Create torrent file...$fg_reset"
+if [ -f "$iso_string.torrent" ] ; then
+ rm "$iso_string.torrent"
+fi
mktorrent --announce=http://dopsi.ch:6969/announce --web-seed="$(join_by ',' "${available_mirrors[@]}")" "$iso_string"
+echo -e "$fg_reset${fg_bold}Create magnet link...$fg_reset"
+transmission-show --magnet "$iso_string.torrent"
# vim: set ts=4 sw=4: