Skip to content

Commit c5d719c

Browse files
committed
Allow passing a quoted enclosed, space separated list of torrent ids as an argument.
1 parent d98ad2c commit c5d719c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manual-tracker-add.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ done
2727
}
2828

2929
# Get list of active torrents
30-
ids="$(transmission-remote "$host" --auth="$auth" --list | grep -vE 'Seeding|Stopped|Finished' | grep '^ ' | awk '{ print $1 }')"
30+
ids=${1:-"$(transmission-remote "$host" --auth="$auth" --list | grep -vE 'Seeding|Stopped|Finished' | grep '^ ' | awk '{ print $1 }')"}
3131

3232
for id in $ids ; do
3333
hash="$(transmission-remote "$host" --auth="$auth" --torrent "$id" --info | grep '^ Hash: ' | awk '{ print $2 }')"

0 commit comments

Comments
 (0)