diff options
Diffstat (limited to '')
-rwxr-xr-x | bin/executable_lbdb-fetchaddr-wrapper | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/executable_lbdb-fetchaddr-wrapper b/bin/executable_lbdb-fetchaddr-wrapper index 4503c5e..bb1270a 100755 --- a/bin/executable_lbdb-fetchaddr-wrapper +++ b/bin/executable_lbdb-fetchaddr-wrapper @@ -1,3 +1,7 @@ #!/bin/sh -{ tee /dev/fd/3 | lbdb-fetchaddr >&2; } 3>&1 +if command -v lbdb-fetchaddr > /dev/null; then + { tee /dev/fd/3 | lbdb-fetchaddr >&2; } 3>&1 +else + cat +fi |