MT#55285 Try local ngcp-dump-json.pl instead of installed

Instead of using the script which is installed - use the one from
review. If it's missing for some reason - try installed one.

So you can see if there is any problem with build tools when you create a
review not after you merged it.

Change-Id: I9725db44f94c77099bdc9e50db41596fb2f29061
mr11.4
Mykola Malkov 2 years ago
parent 0f9ca377da
commit b8294a0189

@ -2,11 +2,17 @@
set -euEo pipefail
ngcp_dump_json_cmd="/usr/share/ngcp-db-schema/helper/ngcp-dump-json.pl"
tools_dir="$(dirname "$0")"
ngcp_dump_json_cmd="${tools_dir}/ngcp-dump-json.pl"
if [[ ! -x "${ngcp_dump_json_cmd}" ]]; then
echo "Can't find executable ${ngcp_dump_json_cmd}" >&2
echo "Please install ngcp-db-schema package" >&2
exit 1
echo "Failing back to installed one" >&2
ngcp_dump_json_cmd="/usr/share/ngcp-db-schema/helper/ngcp-dump-json.pl"
if [[ ! -x "${ngcp_dump_json_cmd}" ]]; then
echo "Can't find executable ${ngcp_dump_json_cmd}" >&2
echo "Please install ngcp-db-schema package" >&2
exit 1
fi
fi
mariadb_dir=$(mktemp -d /tmp/mariadb-build.XXXXXX)

Loading…
Cancel
Save