]> Sergey Matveev's repositories - btrtrc.git/commitdiff
fs/test.sh: Update torrentfs arguments and wait for info to be fetched so file isn...
authorMatt Joiner <anacrolix@gmail.com>
Sun, 27 Aug 2017 04:03:10 +0000 (14:03 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 27 Aug 2017 04:03:10 +0000 (14:03 +1000)
fs/test.sh

index 5171204193390fa92e6a00af5edb0ec9b6e07101..068723f946f937b9c02d7a1eea2a1f23247b8fd4 100755 (executable)
@@ -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