From: Matt Joiner Date: Sun, 27 Aug 2017 04:03:10 +0000 (+1000) Subject: fs/test.sh: Update torrentfs arguments and wait for info to be fetched so file isn... X-Git-Tag: v1.0.0~428 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=afb83e792b26702de48b817ca106d03abbe8de58;p=btrtrc.git fs/test.sh: Update torrentfs arguments and wait for info to be fetched so file isn't found --- 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