quiethost
This commit is contained in:
1 parent
9c379af76b
commit
b3c06c0a80
47 files changed
+2116
No files matched your search
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
ssh serverhost sudo /home/lucas/scripts/deluge_user_cmd.sh deluge-console add "$1" > /home/lucas/.LOG/torrentlog.log 2>&1
|
||||
if [ $(cat /home/lucas/.LOG/torrentlog.log | grep -o "Torrent added!" | wc -l) -gt 0 ]; then
|
||||
notify-send 'Add Magnet' 'Success'
|
||||
|
||||
else
|
||||
notify-send 'Add Magnet' 'FAIL -> Copy to Clipboard'
|
||||
echo "$1" | xclip
|
||||
fi
|
||||
exit
|
||||
Reference in new issue
Block a user