dotfiles/bin/transmission-add

16 lines
254 B
Plaintext
Raw Permalink Normal View History

2020-06-16 01:02:01 +00:00
#!/usr/bin/env bash
address=192.168.50.198
set -x
transmission-remote ${address} -a "$1" &> /dev/null
status=$?
if [[ ${status} -eq 0 ]] ; then
notify-send Transmission "Added torrent"
else
notify-send Transmission "Error adding torrent"
fi