git: ce988aa3e800 - stable/14 - release: Remove useless ls

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Wed, 06 Nov 2024 22:46:40 UTC
The branch stable/14 has been updated by cperciva:

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

commit ce988aa3e80019566bf5df4cfd73f7b7195756f2
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2024-11-06 22:24:34 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-11-06 22:46:28 +0000

    release: Remove useless ls
    
    Replace "$((ls *.txz))" with "*.txz"
    
    Reported by:    jrtc27
    
    (cherry picked from commit e166fea685da4ac6a6891f10b07f98d0e9fcfce3)
---
 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