aboutsummaryrefslogtreecommitdiff
path: root/bin/executable_lbdb-fetchaddr-wrapper
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbin/executable_lbdb-fetchaddr-wrapper7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/executable_lbdb-fetchaddr-wrapper b/bin/executable_lbdb-fetchaddr-wrapper
new file mode 100755
index 0000000..bb1270a
--- /dev/null
+++ b/bin/executable_lbdb-fetchaddr-wrapper
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if command -v lbdb-fetchaddr > /dev/null; then
+ { tee /dev/fd/3 | lbdb-fetchaddr >&2; } 3>&1
+else
+ cat
+fi