X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=mount-latest-subvol;h=9bb324b918a20cd0a9357b7d125086f8506c2dfe;hp=a277b55cbc9c9528542e222cc2ae4ce49aab5587;hb=e256742f75e1127266e4ce1e2a871a81a72bc84a;hpb=48389d89d65d783409b3b746919028dea8fb6219 diff --git a/mount-latest-subvol b/mount-latest-subvol index a277b55..9bb324b 100644 --- a/mount-latest-subvol +++ b/mount-latest-subvol @@ -330,7 +330,7 @@ for vol in q a o i; do if [[ $bsub ]]; then tmp=$(mktemp) # in testing, same subvol is 136 bytes. allow some overhead - btrfs send --no-data -p $bsub $leaf | head -c 1000 > $tmp + btrfs send --no-data -p $bsub $leaf | head -c 1000 > $tmp || [[ $? == 141 ]] if (( $(stat -c%s $tmp) < 1000)); then # example output for an empty diff: # Found a valid Btrfs stream header, version 1