1
0
mirror of https://github.com/pgrondek/config.git synced 2024-11-22 03:53:43 +00:00
config/transmission/transmission-add

16 lines
254 B
Plaintext
Raw Normal View History

2019-05-30 20:58:54 +00:00
#!/usr/bin/env bash
2020-03-28 17:27:12 +00:00
address=192.168.50.198
2019-05-30 20:58:54 +00:00
set -x
transmission-remote ${address} -a "$1" &> /dev/null
2019-05-30 20:58:54 +00:00
status=$?
if [[ ${status} -eq 0 ]] ; then
2019-05-30 20:58:54 +00:00
notify-send Transmission "Added torrent"
else
notify-send Transmission "Error adding torrent"
fi