git: 3b47fcc146da - stable/14 - release: Fix typo in powerpc mkisoimages.sh
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Sep 2025 21:22:42 UTC
The branch stable/14 has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=3b47fcc146dae76988084983fbb95e82d44e6b54
commit 3b47fcc146dae76988084983fbb95e82d44e6b54
Author: Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2025-09-16 01:09:05 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-09-18 21:22:32 +0000
release: Fix typo in powerpc mkisoimages.sh
"[ n foo ]" is an error and should have been "[ -n foo ]".
Fortunately the only ill effect was to result in garbage in /tmp/ when
creating powerpc ISO images.
Fixes: 6c3e01bf8578 ("release: Randomize powerpc boot block file name")
MFC after: 3 days
Sponsored by: https://www.patreon.com/cperciva
(cherry picked from commit 8c9a919abaa3f6f16a17586ca72bab939788bf69)
---
release/powerpc/mkisoimages.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/release/powerpc/mkisoimages.sh b/release/powerpc/mkisoimages.sh
index ba7c32f87bee..62656cdaaede 100644
--- a/release/powerpc/mkisoimages.sh
+++ b/release/powerpc/mkisoimages.sh
@@ -109,7 +109,7 @@ if [ -n "${METALOG}" ]; then
fi
makefs -D -N ${BASEBITSDIR}/etc -t cd9660 $bootable -o rockridge -o label="$LABEL" -o publisher="$publisher" "$NAME" "$MAKEFSARG" "$@"
rm -f "$BASEBITSDIR/etc/fstab"
-if [ n "$bootable" ]; then
+if [ -n "$bootable" ]; then
rm $BOOTBLOCK
fi
rm -rf "$BASEBITSDIR/ppc"