Shell Support: Consider `FULL` and `STATIC` build
Before this update running the test suite via the installed version of
the `kdb` tool would not work, if we disabled the shared build
(`BUILD_SHARED=OFF`).
@@ -59,7 +59,7 @@ KDB_DEFAULT_STORAGE="@KDB_DEFAULT_STORAGE@"
KDB_DEFAULT_RESOLVER="@KDB_DEFAULT_RESOLVER@"
if [ -z "${KDB}" ]; then
- KDB=kdb
+ KDB=$({ command -v kdb || command -v kdb-full || command -v kdb-static; } | sed -nE 's/.*(kdb-?[a-z]*)$/\1/p')
fi
KDB_GETENV=$("$KDB" elektrify-getenv getenv KDB 2> /dev/null)
