svn commit: r304702 - head/tools/tools/nanobsd

Gleb Smirnoff glebius at FreeBSD.org
Tue Aug 23 20:04:25 UTC 2016


Author: glebius
Date: Tue Aug 23 20:04:23 2016
New Revision: 304702
URL: https://svnweb.freebsd.org/changeset/base/304702

Log:
  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

Modified:
  head/tools/tools/nanobsd/defaults.sh

Modified: head/tools/tools/nanobsd/defaults.sh
==============================================================================
--- head/tools/tools/nanobsd/defaults.sh	Tue Aug 23 19:57:37 2016	(r304701)
+++ head/tools/tools/nanobsd/defaults.sh	Tue Aug 23 20:04:23 2016	(r304702)
@@ -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


More information about the svn-src-all mailing list