2022-03-09 13:45:36 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
#shellcheck disable=SC1007
|
|
|
|
THIS_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
|
|
cd "${THIS_DIR}"
|
|
|
|
#shellcheck disable=SC1090
|
|
|
|
. ./.environment.sh
|
|
|
|
|
2022-03-29 15:06:49 +00:00
|
|
|
backend_script="./lib/config/config-${CONFIG_BACKEND}"
|
2022-03-09 13:45:36 +00:00
|
|
|
|
2022-03-29 15:06:49 +00:00
|
|
|
if [ ! -x "$backend_script" ]; then
|
|
|
|
echo "unknown config backend '$CONFIG_BACKEND'" >&2
|
|
|
|
exit 1
|
2022-03-09 13:45:36 +00:00
|
|
|
fi
|
|
|
|
|
2022-03-29 15:06:49 +00:00
|
|
|
exec "$backend_script" "$@"
|