commit 8c0121b9d8840215e1e55b061024e839d7f41f3e parent d99dc24793238b437efe3efe8758ffd631fa0359 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Sun, 29 Dec 2019 19:37:36 +0100 Fix transmission command stopping complete transfers Diffstat:
M | .profile | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.profile b/.profile @@ -153,9 +153,9 @@ t_list() { transmission-remote --list; } t_remove() { transmission-remote --torrent "$@" --remove; } t_remove_all() { transmission-remote -tall --remove; } t_stop() { transmission-remote --torrent "$@" --stop; } -t_stop_idle() { - for id in $(t-list | grep Done | grep Idle | awk '{ print $1 }' | tr '\n' ','); do - t-stop "$id" +t_stop_done() { + for id in $(t_list | grep -v ETA | grep Done | awk '{ print $1 }' | tr '\n' ','); do + t_stop "$id" done }