aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-05-09 19:11:24 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-05-09 19:14:52 -0400
commit28bd369bddbd492560856f2718e0f4353a5027ba (patch)
tree0505e0f680a753f963d2de1684c1216deea10d32
parent35eb1786544da8c4b94df9cd1be4cafc41c4d523 (diff)
downloadstasis-28bd369bddbd492560856f2718e0f4353a5027ba.tar.gz
The jf x86_64 binary for mac is suffixed by 386.
* Brilliant.
-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
+}