mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 06:25:34 +00:00
[#3025] appease shellcheck
. "${admin_utils}" ^--------------^ SC1090: Can't follow non-constant source. Use a directive to specify location. version=$(checked_mysql_version) ^-------------------^ SC2119: Use checked_mysql_version "$@" if function's $1 should mean script's $1. ... and others that spiraled afterwards
This commit is contained in:
@@ -6,12 +6,6 @@
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
# SC1091: Not following: ... was not specified as input (see shellcheck -x).
|
||||
|
||||
# shellcheck disable=SC2039
|
||||
# SC2039: In POSIX sh, 'local' is undefined.
|
||||
|
||||
# Exit with error if commands exit with non-zero and if undefined variables are
|
||||
# used.
|
||||
set -eu
|
||||
@@ -23,8 +17,10 @@ prefix="@prefix@"
|
||||
# Include utilities. Use installed version if available and
|
||||
# use build version if it isn't.
|
||||
if test -f "@datarootdir@/@PACKAGE_NAME@/scripts/admin-utils.sh"; then
|
||||
# shellcheck source=./src/bin/admin/admin-utils.sh.in
|
||||
. "@datarootdir@/@PACKAGE_NAME@/scripts/admin-utils.sh"
|
||||
else
|
||||
# shellcheck source=./src/bin/admin/admin-utils.sh.in
|
||||
. "@abs_top_builddir@/src/bin/admin/admin-utils.sh"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user