Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2016 20:04:23 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r304702 - head/tools/tools/nanobsd
Message-ID:  <201608232004.u7NK4NpT042714@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608232004.u7NK4NpT042714>