From 04e19640e9a1f28f97acb7744f91642158cf7e49 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 10 Nov 2023 13:11:34 -0500 Subject: [PATCH] ape: Fix uname -m redirection This was leading to errors like .../tool/build/fixupobj.com: this ape binary lacks support --- ape/ape.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ape/ape.S b/ape/ape.S index d92863b9b..7cb6dc85a 100644 --- a/ape/ape.S +++ b/ape/ape.S @@ -592,7 +592,7 @@ ape_disk: #ifdef APE_IS_SHELL_SCRIPT apesh: .ascii "\n@\n#'\"\n" // sixth edition shebang - .ascii "m=\"$(/bin/uname -m >/dev/null)\" || " + .ascii "m=\"$(/bin/uname -m 2>/dev/null)\" || " .ascii "m=\"$(/usr/bin/uname -m)\"\n" .ascii "if [ \"$m\" = x86_64 ] || [ \"$m\" = amd64 ]; then\n"