From 6946694ebc9e1536b03b5f262bfc60ba3243ee4c Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 13 Jun 2022 14:38:49 -0400 Subject: check if lbdb-fetchaddr actually exists --- bin/executable_lbdb-fetchaddr-wrapper | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3