From 28bd369bddbd492560856f2718e0f4353a5027ba Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 9 May 2024 19:11:24 -0400 Subject: The jf x86_64 binary for mac is suffixed by 386. * Brilliant. --- src/artifactory.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/artifactory.c b/src/artifactory.c index a23af98..4772602 100644 --- a/src/artifactory.c +++ b/src/artifactory.c @@ -34,7 +34,11 @@ int artifactory_download_cli(char *dest, if (startswith(arch_ident, "i") && endswith(arch_ident, "86")) { strcpy(arch_ident, "386"); } else if (!strcmp(arch_ident, "amd64") || !strcmp(arch_ident, "x86_64") || !strcmp(arch_ident, "x64")) { - strcpy(arch_ident, "amd64"); + if (!strcmp(os_ident, "mac")) { + strcpy(arch_ident, "386"); + } else { + strcpy(arch_ident, "amd64"); + } } else if (!strcmp(arch_ident, "arm64") || !strcmp(arch_ident, "aarch64")) { strcpy(arch_ident, "arm64"); } else { @@ -445,4 +449,4 @@ int jfrog_cli_rt_upload(struct JFRT_Auth *auth, struct JFRT_Upload *ctx, char *s } return status; -} \ No newline at end of file +} -- cgit