From cc28ea695f9afe6e7524e9b5ba6877f5e5c477d2 Mon Sep 17 00:00:00 2001 From: Simon Doppler Date: Sun, 6 Aug 2017 15:50:10 +0200 Subject: Show magnet link --- al32-mktorrent.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'al32-mktorrent.sh') 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: -- cgit v1.2.3