#!/bin/sh # source https://github.com/aria2/aria2/issues/663 export PATH=$HOME/.cargo/bin:$PATH [ ! -f $HOME/.cargo/bin/imdl ] \ && cargo install -f imdl set -x imdl torrent create --input "$1" imdl torrent show --input "$1.torrent" imdl torrent verify --input "$1.torrent" --content "$1" imdl torrent link --input "$1.torrent"