diff mbox series

[pseudo,12/34] ports/common/subports: Show the unknown OS name in the error

Message ID 1794370862-30908-13-git-send-email-mark.hatle@kernel.crashing.org
State New
Headers show
Series Various fixes | expand

Commit Message

Mark Hatle Nov. 11, 2026, 4:20 a.m. UTC
From: Mark Hatle <mark.hatle@amd.com>

The error for an unsupported host used %(uname -s) instead of
$(uname -s), so it printed that text instead of the name of the OS.

AI-Generated: Uses GitHub Copilot
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
---
 ports/common/subports | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ports/common/subports b/ports/common/subports
index d5f9292..486c7a2 100755
--- a/ports/common/subports
+++ b/ports/common/subports
@@ -5,7 +5,7 @@ 
 
 case $(uname -s) in
 Linux)	echo "linux";;
-*)	echo >&2 "Unknown result from uname -s: %(uname -s). Aborting."
+*)	echo >&2 "Unknown result from uname -s: $(uname -s). Aborting."
 	exit 1
 	;;
 esac