We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b55e6b1 commit 0bc2c3aCopy full SHA for 0bc2c3a
tracker-add-auto-router.sh
@@ -41,6 +41,6 @@ while true ; do
41
done
42
# delete removed torrents record from record file
43
for hash in $(awk '{print $1}' $record_file); do
44
- [[ $(transmission-remote "$host" --auth="$auth" --torrent "${torrent_hash}" --info | wc -l) -eq 0 ]] && sed -in $(grep -n $hash $record_file | awk -F ':' '{print $1}')'d' $record_file
+ [[ $(transmission-remote "$host" --auth="$auth" --torrent "${torrent_hash}" --info | wc -l) -eq 0 ]] && sed -in $(grep -n $hash $record_file | head -n 1 | awk -F ':' '{print $1}')'d' $record_file
45
46
0 commit comments