diff options
author | Simon Doppler <dopsi@dopsi.ch> | 2017-08-06 15:50:10 +0200 |
---|---|---|
committer | Simon Doppler <dopsi@dopsi.ch> | 2017-08-06 15:50:10 +0200 |
commit | cc28ea695f9afe6e7524e9b5ba6877f5e5c477d2 (patch) | |
tree | 87f4971799276928ba2c36bb77aa518d915e1660 | |
parent | 11f19906592d422ee4f320a28527499e4c4a85a4 (diff) | |
download | releng-cc28ea695f9afe6e7524e9b5ba6877f5e5c477d2.tar.xz |
Show magnet link
-rw-r--r-- | al32-mktorrent.sh | 5 |
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: |