The -f check here is used to determine whether we have a single kernel

config or a list of them.  Put the variable into quotes, to avoid syntax
error from [ in case of list.  Without this change list is still working,
but an error is reported in the build log file.

Reviewed by:	imp
This commit is contained in:
Gleb Smirnoff 2016-08-23 20:04:23 +00:00
parent e99472e0d6
commit a5ae1a9829
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304702

View File

@ -227,7 +227,7 @@ nano_make_install_env ( ) {
# Extra environment variables for kernel builds
nano_make_kernel_env ( ) {
if [ -f ${NANO_KERNEL} ] ; then
if [ -f "${NANO_KERNEL}" ] ; then
KERNCONFDIR="$(realpath $(dirname ${NANO_KERNEL}))"
KERNCONF="$(basename ${NANO_KERNEL})"
make_export KERNCONFDIR