git: 8c9a919abaa3 - main - release: Fix typo in powerpc mkisoimages.sh
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 16 Sep 2025 01:11:30 UTC
The branch main has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=8c9a919abaa3f6f16a17586ca72bab939788bf69
commit 8c9a919abaa3f6f16a17586ca72bab939788bf69
Author: Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2025-09-16 01:09:05 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-09-16 01:11:21 +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
---
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 9d83390f1a4e..705545dead4b 100644
--- a/release/powerpc/mkisoimages.sh
+++ b/release/powerpc/mkisoimages.sh
@@ -112,7 +112,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"