From fb9779d52d45be6f1fe48902d5e9f79aef1c1def Mon Sep 17 00:00:00 2001 From: rootzoll Date: Thu, 6 Sep 2018 17:22:04 +0200 Subject: [PATCH] fix donwload path --- home.admin/50torrentHDD.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/50torrentHDD.sh b/home.admin/50torrentHDD.sh index 0a72c9e..f658186 100755 --- a/home.admin/50torrentHDD.sh +++ b/home.admin/50torrentHDD.sh @@ -22,7 +22,7 @@ fi # screen background monitoring settings name="torrent" -targetDir="/mnt/hdd/torrent/" +targetDir="/mnt/hdd/torrent" targetSize=$size maxTimeoutLoops=100000 command="sudo lftp -c \"torrent -O ${targetDir} /home/admin/assets/${torrent}.torrent; bye\"" @@ -134,7 +134,7 @@ if [ ${isRunning} -eq 1 ]; then fi # the path torrent will download to -targetPath="${targetDir}${torrent}" +targetPath="${targetDir}/${torrent}" echo "path to downloaded data is ${targetPath}" # calculate progress and write it to file for LCD to read