From: Andrei Pavel Date: Tue, 12 Aug 2025 08:37:25 +0000 (+0300) Subject: [#3931] Use double quotes with @datarootdir@ X-Git-Tag: Kea-3.1.1~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f50fffd9bcd242a095d28d29d919b0c099bfaf6;p=thirdparty%2Fkea.git [#3931] Use double quotes with @datarootdir@ Because it expands to shell variables like "${prefix}" --- diff --git a/src/share/yang/modules/utils/reinstall.sh.in b/src/share/yang/modules/utils/reinstall.sh.in index d7fc1729cd..39e33b5f20 100755 --- a/src/share/yang/modules/utils/reinstall.sh.in +++ b/src/share/yang/modules/utils/reinstall.sh.in @@ -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