ape: Fix uname -m redirection

This was leading to errors like

    .../tool/build/fixupobj.com: this ape binary lacks  support
This commit is contained in:
Tavian Barnes 2023-11-10 13:11:34 -05:00
parent d2f49ca175
commit 04e19640e9

View file

@ -592,7 +592,7 @@ ape_disk:
#ifdef APE_IS_SHELL_SCRIPT #ifdef APE_IS_SHELL_SCRIPT
apesh: .ascii "\n@\n#'\"\n" // sixth edition shebang 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 "m=\"$(/usr/bin/uname -m)\"\n"
.ascii "if [ \"$m\" = x86_64 ] || [ \"$m\" = amd64 ]; then\n" .ascii "if [ \"$m\" = x86_64 ] || [ \"$m\" = amd64 ]; then\n"