aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbin/executable_lbdb-fetchaddr-wrapper6
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