From owner-svn-src-all@freebsd.org Tue Aug 23 20:04:24 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC655BC46DD; Tue, 23 Aug 2016 20:04:24 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A46E31FAA; Tue, 23 Aug 2016 20:04:24 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u7NK4Nak042715; Tue, 23 Aug 2016 20:04:23 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u7NK4NpT042714; Tue, 23 Aug 2016 20:04:23 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <201608232004.u7NK4NpT042714@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Tue, 23 Aug 2016 20:04:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r304702 - head/tools/tools/nanobsd X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2016 20:04:25 -0000 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