mirror of
https://github.com/pgrondek/config.git
synced 2025-02-16 14:56:28 +00:00
16 lines
248 B
Text
16 lines
248 B
Text
![]() |
#!/usr/bin/env bash
|
||
|
|
||
|
address=192.168.50.101
|
||
|
|
||
|
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
|