git: b658d3ea493f - releng/14.2 - release: Remove useless ls

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Thu, 07 Nov 2024 02:54:22 UTC
The branch releng/14.2 has been updated by cperciva:

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

commit b658d3ea493fb3a9f89756be34f972bb3b9d19ed
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2024-11-06 22:24:34 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-11-07 02:53:59 +0000

    release: Remove useless ls
    
    Replace "$((ls *.txz))" with "*.txz"
    
    Approved by:    re (implicit, release build fixes)
    Reported by:    jrtc27
    Sponsored by:   Amazon
    
    (cherry picked from commit e166fea685da4ac6a6891f10b07f98d0e9fcfce3)
    (cherry picked from commit ce988aa3e80019566bf5df4cfd73f7b7195756f2)
---
 release/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/release/Makefile b/release/Makefile
index 3ae3a28a1104..be0abf84de23 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -245,12 +245,12 @@ dvd: packagesystem
 		-DDB_FROM_SRC )
 # Copy distfiles
 	mkdir -p ${.TARGET}/usr/freebsd-dist
-	for dist in MANIFEST $$(ls *.txz); \
+	for dist in MANIFEST *.txz; \
 	    do cp $${dist} ${.TARGET}/usr/freebsd-dist; \
 	done
 .if defined(NO_ROOT)
 	echo "./usr/freebsd-dist type=dir uname=root gname=wheel mode=0755" >> ${.TARGET}/METALOG
-	for dist in MANIFEST $$(ls *.txz); \
+	for dist in MANIFEST *.txz; \
 	    do echo "./usr/freebsd-dist/$${dist} type=file uname=root gname=wheel mode=0644" >> ${.TARGET}/METALOG; \
 	done
 .endif