diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2016-08-23 20:04:23 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2016-08-23 20:04:23 +0000 |
commit | a5ae1a98296703187d3ae8614a2c08384b8686ef (patch) | |
tree | 8b1bed7960be971ec1f13997fc8c25a9c748c5dc /tools | |
parent | e99472e0d627bca539363995d74d73cb1b25d469 (diff) | |
download | src-a5ae1a98296703187d3ae8614a2c08384b8686ef.tar.gz src-a5ae1a98296703187d3ae8614a2c08384b8686ef.zip |
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
Notes
Notes:
svn path=/head/; revision=304702
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/tools/nanobsd/defaults.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh index 44b64cd57db5..a5984b784f5c 100755 --- a/tools/tools/nanobsd/defaults.sh +++ b/tools/tools/nanobsd/defaults.sh @@ -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 |