#!/bin/sh

if command -v lbdb-fetchaddr > /dev/null; then
    { tee /dev/fd/3 | lbdb-fetchaddr >&2; } 3>&1
else
    cat
fi