aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/artifactory.c8
1 files changed, 6 insertions, 2 deletions
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
+}