Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2026 16:51:39 +0000
Message-ID:  <696fb29b.335ec.dabfd9a@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by jlduran:

URL: https://cgit.FreeBSD.org/src/commit/?id=eced166af01565fb1d6278a8918e844ebc4412a6

commit eced166af01565fb1d6278a8918e844ebc4412a6
Author:     Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2026-01-20 16:50:47 +0000
Commit:     Jose Luis Duran <jlduran@FreeBSD.org>
CommitDate: 2026-01-20 16:51:09 +0000

    nanobsd: Avoid unnecessary subshell execution
    
    Mimic c99bb5747f5e ("nanobsd: minor formatting cleanup") and cleanup
    _create_code_slice(), somehow I missed it when rebasing.
    
    No functional change intended.
    
    Fixes:          ecc039be7fdd ("nanobsd: Add a NO_ROOT build option")
    MFC after:      3 days
---
 tools/tools/nanobsd/legacy.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/tools/nanobsd/legacy.sh b/tools/tools/nanobsd/legacy.sh
index efb9c68254c9..06dce15ffa0a 100644
--- a/tools/tools/nanobsd/legacy.sh
+++ b/tools/tools/nanobsd/legacy.sh
@@ -155,7 +155,7 @@ create_code_slice() {
 	) > ${NANO_OBJ}/_.cs 2>&1
 }
 
-_create_code_slice ( ) (
+_create_code_slice() {
 	pprint 2 "build code slice"
 	pprint 3 "log: ${NANO_OBJ}/_.cs"
 
@@ -181,7 +181,7 @@ _create_code_slice ( ) (
 	rm -f "${NANO_OBJ}/_.disk.part"
 
 	) > ${NANO_OBJ}/_.cs 2>&1
-)
+}
 
 create_diskimage() {
 	pprint 2 "build diskimage"


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?696fb29b.335ec.dabfd9a>