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:
glebius 2016-08-23 20:04:23 +00:00
parent 77803ae6df
commit 7d350d3a83

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