correct check for completeness

This commit is contained in:
rootzoll 2018-09-15 10:22:37 +02:00
parent dc9883bbcd
commit 52d1a63083

@ -56,7 +56,7 @@ while :
do
# check if completed by inspecting rtorrent session files
torrentComplete=$(cat /home/admin/.rtorrent.session/*.torrent.libtorrent_resume | grep ':completei1' -c)
torrentComplete=$(cat /home/admin/.rtorrent.session/*.torrent.rtorrent | grep ':completei1' -c)
if [ ${torrentComplete} -eq 1 ]; then
echo "OK - torrent finished"
break