aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2022-06-13 14:38:49 -0400
committerRyan Kavanagh <rak@rak.ac>2022-06-13 15:12:35 -0400
commit6946694ebc9e1536b03b5f262bfc60ba3243ee4c (patch)
tree3b706f128c103043985b029745c56ec475960534
parentset from for sdf (diff)
check if lbdb-fetchaddr actually exists
-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