mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-03 01:18:44 +02:00
correct check for completeness
This commit is contained in:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user