From afb83e792b26702de48b817ca106d03abbe8de58 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 27 Aug 2017 14:03:10 +1000 Subject: [PATCH] fs/test.sh: Update torrentfs arguments and wait for info to be fetched so file isn't found --- fs/test.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/test.sh b/fs/test.sh index 51712041..068723f9 100755 --- a/fs/test.sh +++ b/fs/test.sh @@ -1,7 +1,8 @@ mkdir mnt torrents -GOPPROF=http godo github.com/anacrolix/torrent/cmd/torrentfs -mountDir mnt -torrentPath torrents & +GOPPROF=http godo github.com/anacrolix/torrent/cmd/torrentfs -mountDir=mnt -metainfoDir=torrents & cd torrents wget http://releases.ubuntu.com/14.04.2/ubuntu-14.04.2-desktop-amd64.iso.torrent cd .. -ls mnt -pv mnt/ubuntu-14.04.2-desktop-amd64.iso | md5sum +file=ubuntu-14.04.2-desktop-amd64.iso +while [ ! -e "mnt/$file" ]; do sleep 1; done +pv "mnt/$file" | md5sum -- 2.44.0