2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 01:49:48 +00:00

[#3931] Use double quotes with @datarootdir@

Because it expands to shell variables like "${prefix}"
This commit is contained in:
Andrei Pavel 2025-08-12 11:37:25 +03:00
parent 80c7cc97f6
commit 5f50fffd9b
No known key found for this signature in database
GPG Key ID: D4E804481939CB21

View File

@ -87,8 +87,8 @@ prefix="@prefix@"
# If script is in sources, use modules from sources.
# If script is in installation, use modules from installation.
modules='@abs_top_srcdir@/src/share/yang/modules'
if test "${script_path}" = '@datarootdir@/kea/yang/modules/utils'; then
modules='@datarootdir@/kea/yang/modules'
if test "${script_path}" = "@datarootdir@/kea/yang/modules/utils"; then
modules="@datarootdir@/kea/yang/modules"
fi
if test -z "${modules+x}"; then
printf 'ERROR: cannot find location of modules. Use this script from sources or from installation.\n' >&2