diff options
author | Ryan Kavanagh <rak@rak.ac> | 2022-06-13 14:38:49 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2022-06-13 15:12:35 -0400 |
commit | 6946694ebc9e1536b03b5f262bfc60ba3243ee4c (patch) | |
tree | 3b706f128c103043985b029745c56ec475960534 | |
parent | set from for sdf (diff) |
check if lbdb-fetchaddr actually exists
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 |