summaryrefslogtreecommitdiff
path: root/scripts/main.sh
blob: e8d006d8c9420ac30b1913c2b7b9e41b4219cca6 (plain)
1
2
3
4
5
6
7
#!/bin/bash
set -e
go build ./cmd/btrfs-rec
if ! test -s ../scratch/dump.scan-for-nodes.json; then
	time ./btrfs-rec --pv=../scratch/dump-zero.img inspect scan-for-nodes > ../scratch/dump.scan-for-nodes.json ||
		{ r=$?; rm -f ../scratch/dump.scan-for-nodes.json; exit $r; }
fi