mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-21 14:11:06 +02:00
correct check for completeness
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user