Try to better adhere to existing line length conventions

This commit is contained in:
BenceSzalai 2025-05-01 18:10:45 +02:00
parent e40fe1a391
commit d5a790d455
No known key found for this signature in database
GPG key ID: B1FC0240D2CD9A19
2 changed files with 8 additions and 4 deletions

View file

@ -616,7 +616,10 @@ apesh: .ascii "\n@\n#'\"\n" // sixth edition shebang
#if SupportsXnu() #if SupportsXnu()
// Add an architecture suffix to the temporary APE Loader // Add an architecture suffix to the temporary APE Loader
// name to differentiate between x86_64 and arm64. // name to differentiate between x86_64 and arm64.
.ascii "[ -d /Applications ] && t=\"${t}-$(uname -m 2>/dev/null || printf 'unknown')\"\n" .ascii "[ -d /Applications ] && "
.ascii "t=\"${t}-$("
.ascii "uname -m 2>/dev/null || printf 'unknown'"
.ascii ")\"\n"
#endif /* SupportsXnu() */ #endif /* SupportsXnu() */
.ascii "[ -x \"$t\" ] || {\n" .ascii "[ -x \"$t\" ] || {\n"
.ascii "mkdir -p \"${t%/*}\" &&\n" .ascii "mkdir -p \"${t%/*}\" &&\n"

View file

@ -2018,9 +2018,10 @@ int main(int argc, char *argv[]) {
if (loaders.n) { if (loaders.n) {
p = stpcpy(p, "t=\"${TMPDIR:-${HOME:-.}}/.ape-" APE_VERSION_STR); p = stpcpy(p, "t=\"${TMPDIR:-${HOME:-.}}/.ape-" APE_VERSION_STR);
if (support_vector & _HOSTXNU) { if (support_vector & _HOSTXNU) {
// Add the current architecture to the temporary APE Loader // Add an architecture suffix to the temporary APE Loader
// name to differentiate between x86_64 and arm64 Ape Loaders. // name to differentiate between x86_64 and arm64.
p = stpcpy(p, "$([ -d /Applications ] && ( printf '-'; ( uname -m 2>/dev/null || printf 'unknown')))"); p = stpcpy(p, "$([ -d /Applications ] && ( printf '-'; "
"( uname -m 2>/dev/null || printf 'unknown') ))");
} }
p = stpcpy(p, "\"\n" p = stpcpy(p, "\"\n"
"[ x\"$1\" != x--assimilate ] && " "[ x\"$1\" != x--assimilate ] && "